Title: code alignment
Last modified: August 18, 2016

---

# code alignment

 *  [hbalagh](https://wordpress.org/support/users/hbalagh/)
 * (@hbalagh)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/code-alignment/)
 * Ok i have my blog so it’s all justified text, how ever when i disply code i don’t
   want it to be justified i want it just regular left alligned, i thought if i 
   placed the following in my css it would work but it’s not
 * `code {
    text-align: left; }

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

 *  [Kate](https://wordpress.org/support/users/katie1/)
 * (@katie1)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/code-alignment/#post-323660)
 * maybe if you try to wrap your code in an outer div…
 * .codeblock {
    text-align:left; clear:both; margin:0; padding:0; }
 * see how that goes.
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/code-alignment/#post-323661)
 * I just client-side added this to the bottom of your stylesheet and it worked 
   fine:
 * `code { text-align: left; }`
 * (I have a great Firefox extension that allows me to do that.)
 * Did you hard refresh after editing your stylesheet? (Control + F5) Your browser
   caches the stylesheet and often any changes won’t appear right away unless you
   hard refresh.

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

The topic ‘code alignment’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * Last activity: [20 years, 4 months ago](https://wordpress.org/support/topic/code-alignment/#post-323661)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
