Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-01 02:00:19

camello
Member
From: Lisbon
Registered: 2006-01-15
Posts: 63
Website

cannot justify the text in IE

Hi, I’m triyng to justify the text on a news body.

I’ve managed to do it at Mozzila whith this style code:

<code> .body { color: black; font-family:verdana; font-size: 90%; text-align: justify; } </code>

and this part of code at the article form:

<code> <span class=“body”> <txp:body /> </span> </code>

Somehow the thing works just fine at Mozilla, but not at IE .

Any sugestion guys ?

Thanks

camello

Offline

#2 2006-04-01 03:04:55

whatbrick
Member
From: Texas
Registered: 2006-03-13
Posts: 100

Re: cannot justify the text in IE

I ran a test, and it seems as long as the element you are using is an inline element (like the span you used above), then justifying it will not work in IE. Try using a div instead of span and see if it works, as div is a block level element. Or, if you are using p tags, you can target those instead, like with .body p as p tags are also block level elements.


Do not taunt the Markup Monkey!

Offline

#3 2006-04-01 20:25:18

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: cannot justify the text in IE

Yes, text-align is a block level attribute.

Also a good idea to avoid using class names that reflect predefined html tags/elements such as html, body etc.

You could just do

<code>body { color: black; font-family:verdana; font-size: 90%; text-align: justify; }</code>

<p>to justify text throughout the page body.</p>


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#4 2006-04-02 00:11:45

camello
Member
From: Lisbon
Registered: 2006-01-15
Posts: 63
Website

Re: cannot justify the text in IE

Thank you all !!!!!!!!!!!!

I used the <code>.body p >/code> idea. It worked just fine.

Keep up the good work

camello

www.semanariocientifico.com

Offline

Board footer

Powered by FluxBB