Four-column standard DIV+CSS layout example
Here's the code:
nice and free CSS Template 4
left
#left { Position:absolute; left:2%; width:19%; top:106px; Background-color: #ffffff; }
Warning
these pages use certain CSS definitions this are unsupported by older BROWSERS.<BR more nice and free CSS templates
middleleft
#middleleft { Position:absolute; left:22%; width:28%; top:106px; Background-color: #ffffff; }
calculations in your head
this example requires some calculations. The sum of the widths yields 98%. The distance from The border of the "the" the "the" "the" the "the" the "the" distance yields the left position of The next box.
if you want boxes of different width you need to adjust these values accordingly.
use of this code is encouraged!
try it with 2 or 3 columns
middleright
#middleright { Position:absolute; left:51%; width:28%; top:106px; Background-color: #ffffff; }
box border
borders, pading and margin are defined in
#right, #middleright, #middleleft, #left { border:1px solid #564b47; padding:0px; margin:0px; }
font definitions
padding are passed to P, H1 and H3.
P,H1, H3, pre { padding:5px 15px; margin:0px; }
right
#right { Position:absolute; left:80%; width:18%; top:106px; Background-color: #ffffff; }
open code
use of this code is encouraged! (O_.) /
|
below is the HTML scripting Effects code, click the Run button to see the effect:
[Ctrl + a All SELECT Tip: You can modify some of the code first, and then press run the