Forum Moderators: mack

Message Too Old, No Replies

Table problem (IE vs Mozilla)

Tables showing ok in IE but unformatted in Mozilla

         

digitalwolf

4:03 pm on Feb 16, 2006 (gmt 0)

10+ Year Member



Hi all.
I just encountered this problem on my website.My hompage is designed in Dreamweaver using tables.All the information is structured in tables.I edited for them the border colour so is merging the background (same colour for the table borders and the background).In IE all is ok and the website is displayed correctly. But in Mozilla the colour is the default one (it's like the browser is ignoring the colour tag).
Also the links are having a strange behaviour in Mozilla.Again, IE shows them correctly (hover function used) but Mozilla is just using the default setting(blue colour, underlined).

Can someone help me out with this please?

Regarding the tables...the only option that I see it's working would be to create the website using layers and then converting to tables.Looks ok this way in both browsers.
Thanks!

le_gber

4:35 pm on Feb 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hello digitalwolf and welcome to WebmasterWorld,

what did you use to set the colors for the borders and links - css or html tags?

if you could show us the code you used - it would be helpful - if your table has many rows, you could reduce it to two or three and use this code instead.

Hope this helps

digitalwolf

9:47 am on Feb 18, 2006 (gmt 0)

10+ Year Member



<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>x</title>
</head>
<body>
<table width="200" border="1" bordercolor="#0000FF" bgcolor="#0000FF">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>

This is the general form of the code used for a table in my website.I hope this helps.

The tables are having the same background & border colour.Inside the tables I have just text.My goal is to hide the fact that I used tables for the end user...this is the reason why I have the same colour for the background and the borders.

Thank you!

le_gber

12:11 pm on Feb 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ok,

[web standard cap on]

I will first tell you that you should - if you can - try and design websites using html and css and only use tables for data and not layout.

[web standard cap off]

here is what you can do to solve your prolem:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>x</title>
</head>
<body>
<table width="200" border="0" bgcolor="#0000FF">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>

you can also use the attributes cellpadding="value" and cellspacing="value" where value are numbers if you wish

  • to create a bit of space between the table cells use cellspacing
  • to create space between the cell border and its content use cellpadding



    now if that's solved your problem and you want some help with your links - copy the code for them as well here :)
  •