Friday, January 8, 2010

Css coding help and stuff ?

OK i have a free webs website and i have the margin set but when the page loads it take forever for the margin to set it self. I was wondering if there was like a code that would automatically center the page no matter the screen width or anything. If someone could please help me in any way with css coding that would be appreciated. :] BTW here's my site in case you need to see it http://thetwilightcodewebs.comCss coding help and stuff ?
Enclose your contents in a div. Do it like this


body { text-align: center; [...yer other body stuff goes here...] }


#wrapper { margin: 0 auto; text-align: left; [...other wrapper stuff here?...] }





%26lt; html %26gt;


%26lt; head %26gt;


...


%26lt; / head %26gt;


%26lt; body %26gt;


%26lt; div id=';wrapper'; %26gt;


...all yer page stuff goes here...


%26lt; / div %26gt;


%26lt; / body %26gt;


%26lt; / html %26gt;Css coding help and stuff ?
put a %26lt;center%26gt; tags directly after the %26lt;body%26gt; tag and a %26lt;/center%26gt; tag directly before the %26lt;/body%26gt; tag.

No comments:

Post a Comment