• 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)
  • 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.

    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.