473,562 Members | 2,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
Jul 21 '05 #1
1 1600
John wrote:
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; )
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.
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4566
by: bdwise | last post by:
I have this in my style: #divNavigation { position: relative; overflow: hidden; align: right; vertical-align: top; text-align: center; width: 126;
0
1202
by: Jake | last post by:
How can I force an image download with IE using ASP.net?? Here is the catch: the image I want to force a write with is located on another web server. I can only reference the image with a URL. If the image is on my machine, I use the response.wrifefile method. After setting up my headers I can force an image download. However, I can't get...
1
10844
by: Marco Maroni | last post by:
How to force image refresh on client browser ? Is ti possible to force the refresh of the same image (tha was changed server-side) to the client, without user press Contrl+F5 in IE ? - Marco
5
1907
by: Richard Shewmaker | last post by:
Hi. I've been using CSS for basic stuff, mostly concerning fonts. I want to get going with using CSS fully. Two days ago I purchased O'Reilly's "Cascading Style Sheets" and "CSS Cookbook." I've been reading them and have tried some really basic stuff and am not having a very good time (lol). I'm feeling really stupid, to be honest. I was...
0
1196
by: angeldazie | last post by:
I have not really seen a precise answer as to how to fix this problem. Does anyone have any suggestions. Here is the site I am working on the the footer is a background table image-it is repeating in firefox and just looks like crap. any suggestions??? http://www.cybermindwebworks.com/proof/plainwellpapersite/ Thanks.
4
17562
by: Jason | last post by:
Is that possible? How? <td > <asp:Label ID="StartDateLabel" runat="server" Text="Start Date:"> <asp:imagebutton ID="Imagebutton1" width=18 Height=18 CommandName=SetDate imageUrl="../cal.jpg" runat=server /> </asp:Label> </td> <td >
3
3089
by: skyleestar | last post by:
We've tried looking for a discussion on this but haven't found any fixes yet that seem to work. When you go to our website, www.MillbrookTack.com, in FireFox there is unwanted white space above our Welcome Image/Map. This is not a problem in Internet Explorer. Please help! :)
1
1402
by: tmckee | last post by:
On http://www.thomasmckee.com/scroller.html, how can I align the image of the car to the left of the scroller with no spacing between them and the total size be 960w by 150h? I mean, how do I butt them next to each other? If you can, will you email your answer to (EMAIL REMOVED)?
3
1841
by: vps | last post by:
Please tell me how I center a background image in Firefox (2.0.0.7)? The following code places any image in the top part of the browser: body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
2
1555
by: =?Utf-8?B?UnVpIE9saXZlaXJh?= | last post by:
I have the following code to show an image in html: "&nbsp&nbsp&nbsp:.. <img src=\"\\Resources\\Icons\\TarefaAEspera.gif\" />&nbspTask" In IE image are showed correctly, but in Firefox don’t. What I am doing wrong to firefox don’t show image? Thanks & Regards, Rui Oliveira
0
7577
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7869
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7935
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6221
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5477
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3608
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2073
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1191
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.