WordPress.org

Ready to get started?Download WordPress

Forums

Instable <br/> ! (7 posts)

  1. amlie
    Member
    Posted 7 years ago #

    hello !

    Sometimes i'm using "<br/>" in my posts or pages (so that they look prettier !).

    But when i go back to make some changes, the "<br/>" are gone and i have to put them again. It's a pain in the ...

    I just put "<br/>" where i want more space.
    Am i writing it wrong ?

    thank you !!!

    amélie

  2. Sivar
    Member
    Posted 7 years ago #

    No, you don't. The editor just has a soul of its own and corrects what it regards to be mistakes. I'm afraid i can't offer a solution, but I'm sure someone else can. Just wanted to tell you, that you're not doing anything wrong ;).

  3. amlie
    Member
    Posted 7 years ago #

    thank you Sivar ! If someone knows the trick...

  4. manstraw
    Member
    Posted 7 years ago #

    instead of using br's, do it the more modern way, and add a margin to the paragraph tag (or whatever tag is appropriate).

    something like:
    <p style="margin-top: 2em;">Whatever paragraph text.</p>

    Even better would be to put a proper rule in your css file, and add a class to the tags you wish to have the extra space.

    something like:
    <p class="prettier">Whatever paragraph text.</p>

    and in your css file:

    p.prettier { margin-top: 2em; }

    Well, I hope you get the idea. If you can do it through CSS, you can easily change it, and everything will automatically be the new way, rather than going back and changing each one manually. Ken what I mean Jock? :)

  5. amlie
    Member
    Posted 7 years ago #

    thanks for the tip.
    i'm not so performant with code, CSS etc but i'll try to do something with it !

  6. Bhooshan
    Member
    Posted 7 years ago #

    Amazing tip Manstraw. Thanks for the same :-)

  7. athique
    Member
    Posted 7 years ago #

    It should be <br />. There's a space in there.

    Don't know if it will solve your problem but that's the correct way to write it in XHTML

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags