Forums

Add blank line in table cell without using two br's (5 posts)

  1. DavidPotter
    Member
    Posted 3 years ago #

    I've run into this problem in tables. It is not valid XHTML to include p tags within td tags but if I try to add a blank line between paragraphs in a table cell WordPress interprets that as described in the article at http://wordpress.org/support/topic/150919?replies=16 and replaces the two br tags with a p tag. I tried adding a style="height:4em" to the br tag to no avail. Adding style="margin-bottom:2em" and style="padding-bottom:2em" didn't work either.

    So how do you get a blank line in a table without using two br tags?

    Note that I'm using Windows Live Writer and it has its own HTML formatter which produces semantically correct HTML but I don't have any control over that formatting (just in case someone says to remove the space between the br and the slash - can't do it with Live Writer).

    Thanks,
    David

  2. @mercime
    Member
    Posted 3 years ago #

    add code  

  3. DavidPotter
    Member
    Posted 3 years ago #

    Where? Between the two br's? WordPress is "smarter" than that. It sill converts that to a p tag. I tried other permutations of   to no avail.

  4. iridiax
    Member
    Posted 3 years ago #

    Do this:

    Your text...
     
     
    More of your text...

    Two enters (return, return) makes a new paragraph in WordPress, while a single enter (return) makes a line break.

  5. DavidPotter
    Member
    Posted 3 years ago #

    Hmm, okay, I'll try that.

    Unfortunately, that's not something Windows Live Writer can do, though. It eliminates line breaks in the HTML it sends to the site through xmlrpc.php (not the br or   character entities, physical line breaks). That makes this solution a real pain in the neck.

    Is there any way to do it with styles? I can make it work if there is a way to do this with stles.

    Too bad we can't tell WordPress to ignore its br processing in cases like this.

Topic Closed

This topic has been closed to new replies.

About this Topic