473,396 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

table cell problem both in ie(hegith) and mozilla(position)

hi there!

I'm just going crazy with this stuff I want to do I though was simple.

I just want to locate an image (which is linkeable) below the bottom of
a cell.

I mean, if the cell is at 0,0, the image should be at 0,100%. I've
tried it several ways, and I can make it work in both firefox & ie, but
not at the same time!!.

In explorer, the aproach is this:

..containercell{
position:relative;
}
..imagelayer{
position:absolute;
top:100%;
left:-1px;
}

and the HTML

<table>
<tr>
<td class="containercell">
blah,blah,blah<div class="imagelayer"><img src="..s.s"></div>
</td>
<td class="containercell">
blah,blah,blah<div class="imagelayer"><img src="..s.s"></div>
</td>
</tr>
</table>

this doesn't work in firefox, because of a bug in it (the position
atribute doesn't work in table cells), although this css is strictly
css2
and, in firefox, the approach is:

..containerdiv{
position:relative;
height:100%;
}
..bottomimg{
position:absolute;
left:-1px;
top:100%;
}

<table>
<tr>
<td>
<div class="containerdiv">
blah,blah,blah<img class="bottomimg" src="..s.s">
</div>
</td>
<td>
<div class="containerdiv">
blah,blah,blah<img class="bottomimg" src="..s.s">
</div>
</td>
</tr>
</table>

which doesn't work the way I like in ie, because the height:100%
property in the div element doesn't take the 100% of its parent element
(in this case, the table cell), (in firefox it does), so I can't
position the image where I want, just below the bottom of the cell.
Is there any workaround for this??

or, at least, Is there any simple way of choosing styelsheets depending
on the web client????
txs a lot.

Jul 21 '05 #1
0 2439

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

Similar topics

6
by: Daniel | last post by:
I have this script and I want to adapt it to the DOM of most / all well known browsers like mozilla and netscape.. at the moment it only works in ie4+ en ns6. can anybody give me some hints ?!?...
10
by: john T | last post by:
Is there anyway to vertically center a html table using css in such a way it does not alter the html table. When I tryied it just screws up.
2
by: glutinous | last post by:
I'm assuming that this is not possible (I haven't found a way), but if there's one thing I know for sure, one shouldn't assume anything about what people know how to do on this NG... Enough...
2
by: theo | last post by:
Can someone please take a peek at the top header boxes in ie and mozilla, and tell me what possible fix might be out there. The text and boxes are moving around between the two browsers. I prefer...
1
by: hanganum | last post by:
Hi, I am trying to build one HTML page with a table occupying the entire page and having two rows. The upper row contains data, while the lower row contains two buttons. My problem is: I want...
5
by: jen_designs | last post by:
Is there a way to return the character position on a page? Not the x and y coordinates, but the number of characters on a page. For instance i have a html page with the following text: This is my...
7
by: Erik Sandblom | last post by:
Hello I'm trying to make some tooltips which are position:fixed. It works fine in Opera and Safari/Konqueror, but in Firefox and Camino (ie Mozilla), it takes a few seconds for each tooltip to...
8
by: regrat | last post by:
It's possible create a javascript which counts all words in a webpage until the point in which I click with the mouse. Any suggests?
1
by: asearle | last post by:
Dear all, I have been working to implement a scrolling table into an xml / xsl interface and so far have managed to put together an acceptable version using <thead> and <tbody> syntax. Indeed for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.