Your div is going to be 80% of the viewer’s screen (viewport) width and will make automatic adjustments to the left and right margins according to that width.
You can also specify a width in pixels, for example “760px”. Or in ems “20em”– this makes the div 20 characters wide and will adjust if the visitor changes font size.
November 4th, 2006 at 12:03 am
you can put them all inside a div.
try this:
[put your content here]
November 7th, 2006 at 12:43 am
Alternatively:
// contents of the page
Your div is going to be 80% of the viewer’s screen (viewport) width and will make automatic adjustments to the left and right margins according to that width.
You can also specify a width in pixels, for example “760px”. Or in ems “20em”– this makes the div 20 characters wide and will adjust if the visitor changes font size.
🙂
November 9th, 2006 at 10:33 pm
block level
margin:auto;
inline
text-align:center;
November 12th, 2006 at 9:12 pm
You can use the following code…
For 1024 * 768
create outer div:
For 800 * 600
create outer div: