HighDots Forums  

How can I force an image on the right in IE, NS and Firefox?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss How can I force an image on the right in IE, NS and Firefox? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John
 
Posts: n/a

Default How can I force an image on the right in IE, NS and Firefox? - 01-01-2005 , 07:07 PM






Hi,
I have a jsp that generates rows (depending on how many records are
available in the database) with data and an image and each row
alternates its color.
In each <tr> I have 2 <td>: one for data and one for the image. The
jsp defines a variable for the color --> this variable is then used as
a css selector:

td.rowLight and td.rowDark

Since each row must have an alternate color I have defined a css for
this <td>, let say
class="rowLight" and class="rowDark".
Each selector has a property "text-align: left" for the data. But the
image have to be positioned on the right of its own <td> and this must
be done for :

IE 5.5/6.0
NS 6.x/7.x
Firefox 1.0

How can I do this? Can anybody help me?

Thanks for yourr answers and a Happy New Year.
John

Reply With Quote
  #2  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: How can I force an image on the right in IE, NS and Firefox? - 01-01-2005 , 07:22 PM






John wrote:
Quote:
Hi, I have a jsp that generates rows (depending on how many records
are available in the database) with data and an image and each row
alternates its color. In each <tr> I have 2 <td>: one for data and
one for the image. The jsp defines a variable for the color --
this variable is then used as a css selector:

td.rowLight and td.rowDark
Add:

td.toright { text-align: right; )

Quote:
Since each row must have an alternate color I have defined a css
for this <td>, let say class="rowLight" and class="rowDark". Each
selector has a property "text-align: left" for the data. But the
image have to be positioned on the right of its own <td> and this
must be done for :
<td class="rowLight toright"><img ...></td>
<td class="rowDark toright"><img ...></td>

text-align: left is the default and can probably be eliminated.

--
-bts
-This space intentionally left blank.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.