Title: Text-Align Issues with WordPress
Last modified: August 19, 2016

---

# Text-Align Issues with WordPress

 *  [zechmann](https://wordpress.org/support/users/zechmann/)
 * (@zechmann)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-align-issues-with-wordpress/)
 * I recently did a post and there seems to be an issue with <div style=”text-align:
   right;”></div> and the WordPress’s image align right. At least that’s what I 
   think.
 * Here is the link to the website:
    [http://silencenogood.net/hip-hop/best-weed-music/](http://silencenogood.net/hip-hop/best-weed-music/)(
   Don’t mind the content, lol)
 * It looks okay, I just try to validate the XHTML:
    [http://validator.w3.org/check?uri=http%3A%2F%2Fsilencenogood.net%2Fhip-hop%2Fbest-weed-music%2F](http://validator.w3.org/check?uri=http%3A%2F%2Fsilencenogood.net%2Fhip-hop%2Fbest-weed-music%2F)
 * and I get 21 errors…
 * Any help would be really appreciated.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-align-issues-with-wordpress/#post-1476986)
 * 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](https://wordpress.org/support/users/zechmann/)
 * (@zechmann)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-align-issues-with-wordpress/#post-1477020)
 * 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.
 *  [dougnbr](https://wordpress.org/support/users/dougnbr/)
 * (@dougnbr)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-align-issues-with-wordpress/#post-1477034)
 * 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.

 * 3 replies
 * 3 participants
 * Last reply from: [dougnbr](https://wordpress.org/support/users/dougnbr/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/text-align-issues-with-wordpress/#post-1477034)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
