Forum Moderators: not2easy

Message Too Old, No Replies

Internet Explorer ignores "text-align"

Firefox is fine

         

rashe18

1:15 am on Sep 7, 2007 (gmt 0)

10+ Year Member



Hello ,

I have a strange problem with my wordpress theme.

I am trying to justify the text in the single pages (main text):

-------------------------------------

/** div container for mainbody **/

#content_main {
text-align:justify;
position:relative;
float:left;
width:520px;
margin:15px 0 20px 20px;
background-color:#333;
}

-------------------------------------

The results -

Firefox : text is justified

Explorer local host : text is justified

Explorer server : text is NOT justified (explorer ignores any kind of text-align : right , left , justify )

-------------------------------------

Strange ...

Any tips to solve this problem?

Thanks in advance.

Marshall

7:09 am on Sep 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What doctype are you using? I tried your CSS using HTML 4.01 Transitional on IE7 without any problems and as text-align: left, right and center.

Marshall

rashe18

12:46 pm on Sep 7, 2007 (gmt 0)

10+ Year Member



IE 6

Marshall

12:51 pm on Sep 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'll look at it on 6, but it will be a while. Off to a meeting.

Mashall

Receptional Andy

12:57 pm on Sep 7, 2007 (gmt 0)



Works for me in IE6 with or without a doctype. Is there other CSS that may be conflicting (maybe a rule for paragraphs)?

rashe18

1:49 pm on Sep 8, 2007 (gmt 0)

10+ Year Member



yes , it is a style.css file for my wordpress blog.

c i copy the whole css file here?