473,569 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

table cell problem both in ie(hegith) and mozilla(positio n)

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:relati ve;
}
..imagelayer{
position:absolu te;
top:100%;
left:-1px;
}

and the HTML

<table>
<tr>
<td class="containe rcell">
blah,blah,blah< div class="imagelay er"><img src="..s.s"></div>
</td>
<td class="containe rcell">
blah,blah,blah< div class="imagelay er"><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:relati ve;
height:100%;
}
..bottomimg{
position:absolu te;
left:-1px;
top:100%;
}

<table>
<tr>
<td>
<div class="containe rdiv">
blah,blah,blah< img class="bottomim g" src="..s.s">
</div>
</td>
<td>
<div class="containe rdiv">
blah,blah,blah< img class="bottomim g" 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 2450

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

Similar topics

6
3293
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 ?!? This is used for making a tree <li><ul> var ns6 = document.getElementById && !document.all; var ie4 = document.all &&...
10
26855
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
5349
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 creeping. :-) Is it in fact possible to relatively position a division (on a 'higher' z-index) to correspond with an in-line 'a href' link (within...
2
3331
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 zero margin between boxes, like mozilla does it. I've played around with it, adding borders helps some, but does not fix the problem. Adding a...
1
4194
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 the lower row to always stay 60 pixels height, while the upper row taking the rest of the page. And at the same time, when the upper row contains a...
5
2321
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 string. Then character postion for m would be 9. Any thoughts?
7
2927
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 display, and then to get hidden. If I use position:absolute, the problem goes away, but the tooltips move around with the containing, scrolling div....
8
2120
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
3064
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 the html examples that I found out there this seems to work perfectly. On the surface it also works perfectly in my xml / xsl implementation too...
0
7693
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7605
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...
1
7665
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7962
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...
1
5501
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
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2105
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
1207
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.