View Single Post
  #4 (permalink)  
Old Dec 31st, 2007, 09:40
MikeHopley MikeHopley is offline
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS wrapper affecting body

<stuck record>

Validate your HTML.
Validate your CSS.

</stuck record>

You need to learn about CSS specificity. For example, if you have two rules like this:

Code: Select all
#wrapper { text-align: center }
html, body { text-align: left }
...then all the text within #wrapper will be aligned to the centre. The "#" ID has greater specificity, so that rule takes precedence.
Reply With Quote