Forum Moderators: open
On a webpage I've built the top table cell appears too large in FireFox but okay in Internet Explorer. I've read a few threads on this forum to try and solve the issue but it's confusing me more.
Are there any simple solutions to this issue? The top table cell is too large and the rollover image inside the cell sits in the middle of the cell instead of being up against the top and bottom.
I can post the code if needed.
Thanks in advance.
Ray
What is your DTD? This sounds like one of the common issues that gets tripped by being in standards mode mode where IE does not display an image according to the standards. Reference this thread: Quirks Mode vs. Standards Mode - overview [webmasterworld.com].
The W3C standards recommendation is for browsers to render <img> elements as inline by default - the same as text. This means that the bottom of the image should be aligned to the text baseline, which allows a number of pixels below so that text characters with descenders, such as "g", "j" and so on have room for the character to be displayed. As I said above, IE gets this wrong.
The link I gave above discusses ways to fix the issue. And as with all cross-browser disply problems, the first step, always, should be to make sure the mark-up validates:
W3C Validator - HTML [validator.w3.org]
W3C Validator - CSS [jigsaw.w3.org]
I can't seem to fix it. I'm not really up to date with html and all the protocols used for this type of thing. I tried to set the table cell's properties to baseline and then others but that hasn't worked.
Any ideas other ideas welcome.
Thanks in advance.
Ray
P.S There is also a table border in F.F that should not be there. Any info on this also appreciated.
Thanks for the reply.
I placed that code inside the text as you instructed but it didn't seem to fix the page.
So for now, I've left the code in the page in case you want to check it yourself. Let me know if you need the url.
Annoying how browsers don't operate the same way. Any other ideas welcome.
Thanks
Ray
[edited by: Ray_Dar at 4:26 pm (utc) on Nov. 19, 2007]