Changing spacing between paragraphs and inside of paragraphs

后端 未结 2 1260
后悔当初
后悔当初 2020-12-31 11:26

I found a similar topic, to this, but I can\'t find the specific CSS to change in Wordpress. If you go to my homepage Or blog

I want to change the spacing w

相关标签:
2条回答
  • 2020-12-31 11:40

    Between paragraphs you should set a margin for that element. Between lines within the paragraph you can use line-height. For example:

    p {
      line-height: 32px;   /* within paragraph */
      margin-bottom: 30px; /* between paragraphs */
      }
    

    0 讨论(0)
  • 2020-12-31 11:45

    When applying a margin to the bottom only, it may throw off other aspects of your design. I would recommend the following instead.

    p {
      line-height: 15px;  
      margin: 15px 0;
    }
    

    Applying a margin to the top and bottom helps to keep things consistent. This is the code that I use. I have a background color that wraps around the text. When applying the paragraph margin to the bottom only, it made single paragraph lines stand out. Applying the margin to top and bottom evened things out.

    0 讨论(0)
提交回复
热议问题