Forums

[resolved] <p> tag not formatting correctly (5 posts)

  1. AnthonyC
    Member
    Posted 4 years ago #

    Hello all.

    Well it's my first Wordpress and so far have been free of problems, however, after making modifications to the design I noticed that the tags that Wordpress automatically adds to any posts when viewing them (not creation/editing) are not being displayed correctly. They only seem to make a single line break, rather like a <br> tag. After looking at the source code the tags do seem to be there so I can only guess there is a problem with my style.css.

    I don't really want to start the design over again, so does anybody have any ideas what might have caused this?

    You can see problem here:

    http://www.imahosting.com/ant/baxxsdrinkingden2/

    I hope you guys can be of some help.

  2. podz
    Support Maven
    Posted 4 years ago #

    Press Return once to finish the paragraph.
    Press Return again to leave a blank line.

    The validation - while needing work - shows no problems with regard to the tags.

  3. AnthonyC
    Member
    Posted 4 years ago #

    That's what I'm doing Podz but the < p > tag seems to be just formatting like a < br > tag. Initially when I first added posts it was paragraphing correctly, but it's only since I was modifying the design and css that it's changed.

  4. Viper007Bond
    Member
    Posted 4 years ago #

    First, you might wanna validate your CSS.

    Second, the HTML is fine, well, it's not, but it's fine in regards to the <p>'s. I can tell when I remove all of the CSS from your page -- your paragraphs space themselves out.

    Just check your line spacing and margins/paddings on your content.

  5. AnthonyC
    Member
    Posted 4 years ago #

    Yeah it was a margin issue thanks. Fixed it by adding this:

    #content p { margin:1em 0; }

Topic Closed

This topic has been closed to new replies.

About this Topic