View Single Post
Old 01-31-2014, 02:11 PM   #13
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,561
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by SeaCanary View Post
Code:
.verse {
    margin-bottom: 0.5em;
    }
.verse p {
    margin:0 0 0 1em;
    text-indent:-1em;
    }
.chorus p {
    margin:0 0 0 2em;
    }
What am I doing wrong?
I think it may be a matter of precedence/priority. You may have set a default bottom/top margin for <p> elsewhere, or the renderer you are using may have such a hidden deffinition. What happens then is that an explicit "margin-top", or the corresponding value in the 4-valued "margin" property takes precedence over the 1-valued "margin".
Jellby is offline   Reply With Quote