• Resolved HeroicNate

    (@heroicnate)


    For some reason I can’t get my custom theme to space out my paragraphs. I don’t have a link as I’m working on it locally.

    In the blog posts, I can get the padding and margins to affect the spacing around the paragraphs, but it won’t separate them within a single post so each post looks like a single block of text. Is there a special line of code I need to use to separate the paragraphs?

    When I switch back to the default theme it separates them out, but just can’t find how it did that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you using a ‘reset.css’?

    Sounds as though you are or you are setting your paragraph margins to zero in your styles.

    If you want to add the same margin to all of your paragraphs add the following to your CSS:

    p {
    margin-bottom: 1em !important;
    }

    (Adjust the margin to your own preferences)

    If the style that is overriding your paragraph margins is already declared as important, you should either remove the importance from that definition or add this style after that one in the cascade (closer to the end of your CSS).

    Thread Starter HeroicNate

    (@heroicnate)

    that seemed to work for my posts. Do excerpts not put margins in paragraphs?

    Somewhere there is a style that is setting your paragraphs margins to zero. Not sure if that’s specific to excerpts though.

    Thread Starter HeroicNate

    (@heroicnate)

    thanks. I’ll have to read up more on excerpts.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Paragraph won’t space out’ is closed to new replies.