Forums / Templates, Stylesheets, Page Layout / Text positioning inside TD tag not working in Firefox

Text positioning inside TD tag not working in Firefox

Locked

Views: 1,731

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
12 Sep 2008, 7:35 AM
#1
ajhb avatar

ajhb

New Zenner

Join Date:
Jul 2008
Posts:
59
Plugin Contributions:
0

Text positioning inside TD tag not working in Firefox

Hi,

I'm trying to position text within a TD tag

TD.mainPageText {
text-align: right;
position: relative; 
left: -20px
}

and...

<td class="mainPageText" width="210">chocolate from ...blah blah</td>

Odd thing is it works okay in IE, but only partially works in firefox (it still aligns right but won't move it to the left of the cell by 20 pixels. It's driving me nuts...any help appreciated.

Cheers,
Adam.

12 Sep 2008, 11:15 AM
#2
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: Text positioning inside TD tag not working in Firefox

TD.mainPageText {
text-align: right;
position: relative;
left: -20px
}

this code is trying to move the table cell TD relative to its current position... either give it padding... or better yet, style a paragraph inside the TD

Steve