View Single Post
Old 08-10-2014, 07:38 AM   #12
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by GMcG View Post
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>).
Jellby is offline   Reply With Quote