CSS Text Bottom Margin Ignored

后端 未结 3 1261
盖世英雄少女心
盖世英雄少女心 2021-01-19 19:04

Ok, I hope this isn\'t a simple oversight but I have been working on this for hours!

I have a fairly complex HTML / CSS structure on a page I\'m working with. I have

3条回答
  •  有刺的猬
    2021-01-19 19:53

    Use padding instead. The margin is there, it's just that margin does not fill in the background (which is why it looks like there is no separation.) It's there, it's just not visible.

    element.style {
        padding-bottom: 10px; /* change the margin property to padding */
        font-size: .9em;
        font-style: italic;
    }
    

提交回复
热议问题