Viewing 3 replies - 1 through 3 (of 3 total)
  • None of those errors have anything directly to do with the inline style that you’ve added. I would suggest, however, that you ensure that there are no blank lines after <div style="text-align: right;"> and before </div>.

    Thread Starter zechmann

    (@zechmann)

    Oh, I thought it may have been a conflict between <div style=”text-align: right;”></div> and the image’s class settings that wordpress inserts -class=”alignright size-full wp-image-4496″

    If I get rid of one of these two the error goes away, but it doesn’t do what I want it to. The divs are on their own line, but if I put it on the same line as the content, the error doesn’t go away.

    Thanks esmi for the help, by the way.

    It’s a problem with Wpautop not your style info. esmi is right in that it has something to do with blank lines confusing the Wpautop algorithm.

    Excerpt from a blog article I wrote on the problem some time ago…

    If you have extra </p>, that you didn’t put in your post, try removing any extra spaces at the end of a line, or combine two lines into one larger line, or if all else fails try googling “wpautop paragraph bug”, etc…

    There is also a way to remove wpautop, but then you need to write your post in xhtml, so it’s a trade-off.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Text-Align Issues with WordPress’ is closed to new replies.