Pages

Subscribe:

Ads 468x60px

Thursday, 8 September 2011

3-Column CSS Layout

This article will help you to create 3-column css web page using asp.net.

Step -1
-----------

Create a .css file and use the below code 

*
 { padding0margin0; }
body
 { font-familyArial, Helvetica, sans-seriffont-size13px;
}

#wrapper
 { margin0 autowidth922px;
}

#header
 { color#333width900pxfloatleftpadding10pxborder1px solid #cccheight100pxmargin10px 0px 5px 0pxbackground#BD9C8C;
}

#leftcolumn
 { color#333border1px solid #cccbackground#E7DBD5margin0px 5px 5px 0pxpadding10pxheight350pxwidth195pxfloatleft;
}

#content
 { floatleftcolor#333border1px solid #cccbackground#F2F2E6margin0px 5px 5px 0pxpadding10pxheight350pxwidth456pxdisplayinline;
}

#rightcolumn
 { color#333border1px solid #cccbackground#E7DBD5margin0px 0px 5px 0pxpadding10pxheight350pxwidth195pxfloatleft;
}

#footer
 { width900pxclearbothcolor#333border1px solid #cccbackground#BD9C8Cmargin0px 0px 10px 0pxpadding10px;
}

Step -2
--------------
Download default.aspx and refer the css in that page to see the output

0 comments:

Post a Comment