Margin after center aligned entry content

  • Posted in : Read WP
  • Tessa
    Participant

    In the Read WP theme, I have a blog entry which contains a sentence of center aligned text. I want this to have margin/padding before and after equivalent to a carriage return/hard return (similar to a block quote, but I don’t want to use the block quote here). I previously changed paragraph margins to zero as follows: .entry-content p, .entry-content li {line-height: 1.4em; font-weight: lighter; font-size: .9em; margin-top: 0; margin-bottom: 0;}. When I use the enter key to manually space after the center aligned text, it works to save but then “snaps back” and removes the break after any subsequent edits. I’ve had no issues using the hard return between left aligned paragraphs. I used &nbsp manually to fix this on a page earlier, which worked, but it’s not working here. Any help is much appreciated.

    Mehmet S.
    Keymaster

    Hi, use this in your custom css field:

    body.single .entry-content p
    {
    padding-top: 2em;
    padding-bottom: 2em;
    }
    

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register