WordPress.org

Ready to get started?Download WordPress

Forums

Issue with <br> in Posts (7 posts)

  1. mrtoad
    Member
    Posted 8 years ago #

    I am using the WP default template and when I create a page, I have no issues with structure. But with posts, for some reason I am not getting the <br> to work and after I submit the post, the <br> not only does not work, it dissapears. Can someone take a look and let me know what I might be doing wrong? If you look at this site http://wrcl.org, on the main page I have a post and the first line and the last line are bold and aligned center. Those two lines are to be seperated from the main portion of the post by one line. What could be causing the issue? Thanks.

  2. Samuel B
    moderator
    Posted 8 years ago #

    You probably want those 2 things wrapped in a:
    <p>blah</p>
    tag.
    On FF 1.5 I am getting the <br>.

  3. Amulet
    Member
    Posted 8 years ago #

    I'm not sure, but it might have to do with some errors on your page; it's not validating. See http://validator.w3.org/check?uri=http%3A%2F%2Fwrcl.org%2F.

  4. doctoralf
    Member
    Posted 8 years ago #

    have you tried using <br /> instead of <br>?

  5. Amulet
    Member
    Posted 8 years ago #

    I was actually thinking that, too, but I was thinking WP would automatically do that for him, until I remembered there's a box to check in Options that will fix XHTML, so he might not have that checked.

  6. mrtoad
    Member
    Posted 8 years ago #

    Thanks all. It seems that when I try to do an align center and the break it messes it up. I deleted the post and re did it with it aligned left and it works and no validation errors. Not sure why. I have also tried using paragraph tags and did the
    but no luck. I don't quite understand it.

    Mike

  7. Amulet
    Member
    Posted 8 years ago #

    Are you using align=left (or right) as an attribute in HTML? It might be clashing with CSS settings, if it's not working.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags