473,395 Members | 1,670 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,395 software developers and data experts.

table on firefox vs. IE

Hi all,

Going nuts trying to figure this thing out.

http://www.time4learning.com/login/template.htm

This looks fine on IE but on Firefox my left center table is all out of whack.
Why...why...whyyyyy?

Any ideas?

Thanks
webchick
Apr 30 '07 #1
6 2250
Banfa
9,065 Expert Mod 8TB
Sorry about the delay, I had to wait until I got home so I could see if on Firefox and of course once I got home feeding my daughter and putting her to bed took precedence.

Anyway, I can not tell you the exact cause for this but I can tell what I did that seemed to fix it.

Part of the problem is that your HTML has lots of tags in it, more than required I would say. Is it really necessary to have a div inside every table cell? Is it really necessary to have so many tables.

Anyway the divs in the top left and bottom left cells were causing the cells to be 38px rather than 37 pix wide, remove those divs (obviously leaving the images directly in the cells) and the problem disappears.
Apr 30 '07 #2
Banfa, Thank you!!

Hate those darn div tags!!

Much appreciated :)

Webchick
Apr 30 '07 #3
Banfa
9,065 Expert Mod 8TB
Of course you do realise that more or less the same page can be achieved with a fraction of the HTML by using CSS

[html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Untitled Document</title>

<style type="text/css">
<!--
body {
background-color: #93b6ff;
}
.style14 {font-size: 12px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; }
.style15 {font-size: 11pt; font-weight: bold; }
.style21 {font-size: 18px}
.style22 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
body,td,th {
color: #4040FF;
}
a:link {
color: #4040FF;
text-decoration: underline;
}
a:visited {
text-decoration: underline;
color: #4040FF;
}
a:hover {
text-decoration: none;
color: #EB910A;
}
a:active {
text-decoration: underline;
color: #4040FF;
}

#Dialog {
width: 800px;
height: 288px;
margin: 0 auto;
padding-top: 1px;
background-image: url(template_files/middle.gif);
background-repeat: repeat-y;
}

#Dialog p {
margin: 6em 100px 0 200px ;
text-align: center;
}

#Dialog img {
float: left;
margin-left: 40px;
}


#TopBorder {
height: 37px;
width: 800px;
margin: 3em auto 0;
background-image: url(template_files/top.gif);
background-repeat: no-repeat;
}

#BottomBorder {
height: 37px;
width: 800px;
margin: 0 auto;
background-image: url(template_files/bottom.gif);
background-repeat: no-repeat;
}

-->
</style></head><body>

<div id="TopBorder"></div><div id="Dialog">

<img src="template_files/oopsed.png" height="200" width="150">
<p class="style22">Oops!</p>

</div><div id="BottomBorder"></div>


</body>
</html>
[/html]

I would of course then recommend putting the CSS in an external file.


Edited to add zip of images used
Attached Files
File Type: zip templateImages.zip (1.9 KB, 90 views)
Apr 30 '07 #4
I was afraid that I was going to get an answer like "You need to make your tables using CSS."

SOOO glad I didn't! ;)

Thanks again Banfa
May 1 '07 #5
drhowarddrfine
7,435 Expert 4TB
Then I'll say it. Never use tables for layout. Also, all new pages should use the strict doctype and not transitional.
May 1 '07 #6
Banfa
9,065 Expert Mod 8TB
I have to say webchick that I agree with Doc. I just didn't feel the need to be as strict since I was just covering the forum for him.

But I would in general discourage using tables for layout.
May 1 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: joeZ | last post by:
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...
11
by: Norman L. DeForest | last post by:
Am I misunderstanding the CSS specifications or is Firefox (version 1.0.6) (and Opera) doing the wrong thing? It appears that Firefox 1.0.6 includes the border in width calculations for tables...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
7
by: Johnny | last post by:
In MSIE table captions are displayed at the same size as content. But in Firefox the text displays at browser default, It also exceeds the width of the table and the excess is hidden if the table...
1
by: mistahmiles | last post by:
I am designing a table-based menu. I want the table to take up the entire screen, as it is separating my banner image and the beginning of the text. Anyways, as you can see, I used the "width:100%"...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
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,...
0
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...
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.