Quote:
Originally Posted by GMcG
I think in h2.chp there is a conflict between
text-align: center
and
margin-left: 0em
margin-right: 0em
|
There's no contradiction:
margins affect the position of the element in the parent box.
text-align affects the position of the text or child elements inside this element's box.
Maybe you are thinking of the common mistake:
Code:
<div><img style="text-align:center" src="..."/></div>
in this case it makes no sense to have text-align in the <img>, it should be in the <div> (or margins in the <img>).