Why does Firefox view tables so STUPIDLY??
- Kelson
- Posts: 161
- Joined: August 19th, 2005, 12:03 pm
- Contact:
Here's the thing. You're assuming IE is displaying it "right" and Firefox is displaying it "wrong." You need to think of the web like pizza. IE is New York style pizza, with a thin, crispy crust. Firefox is Chicago style pizza, with a thick, chewy crust. Your code is asking for "pizza" when you're thinking "NY pizza." So when IE gives you NY pizza, it's giving you what you expect, and when Firefox gives you Chicago pizza, it seems wrong -- but it's still what you asked for. It's still pizza. Someone else who wants Chicago-style pizza is going to have the opposite reaction.
The trick is to make sure you specify the style of pizza you want.
If your host lets you control CSS, set the rule "border-style: solid" on the table. That should take care of the problem.
The trick is to make sure you specify the style of pizza you want.
If your host lets you control CSS, set the rule "border-style: solid" on the table. That should take care of the problem.
Last edited by Kelson on January 15th, 2007, 11:02 am, edited 1 time in total.
Can Firefox users and Opera fans agree on anything? The Alternative Browser Alliance
-
- Guest
Well, it works in internet explorer... it shows how i want it to in internet explorer. firefox makesthe borders have ugly shadows. I dont think its a corrupt code that makes this happen if it works perfectly in Iexplore.
How many times it must be said... Firefox is not IE. The cause is in the HTML code. You can't assume that two different programs produce identical output. The HTML table border rendering is not dictated anywhere.
It does not matter if it works in IE. There is ABSOLUTELY NOTHING you can do to change how Firefox renders the tables other than by using CSS. If this neopets does not allow CSS or generates bad code, then that's it. There is nothing you can do. It looks OK in IE, because they tailor their code for IE, not Firefox or anything else.
- DanRaisch
- Moderator
- Posts: 127789
- Joined: September 23rd, 2004, 8:57 pm
- Location: Somewhere on the right coast
carpetrug01, you are missing the point that IE is NOT a standards compliant browser but Firefox is. Just because the code displays "how I want it to" in IE does not mean that the code is properly formatted HTML. It simply means that the code makes IE do what you want.
Running the code you posted above through the HTML validator at www.w3c.org indicates that there are 35 errors in the code, starting with "The DOCTYPE Declaration was not recognized or is missing."
Running the code you posted above through the HTML validator at www.w3c.org indicates that there are 35 errors in the code, starting with "The DOCTYPE Declaration was not recognized or is missing."
Somewhere on the right coast.
-
- Posts: 33
- Joined: July 2nd, 2004, 3:12 pm
It's a known difference in the way the Netscape/Mozilla/Firefox family and IE render table borders:
http://www.htmlcodetutorial.com/tables/ ... p_149.html
"Guest" is right, the only way to get table borders to look the same in both IE and FF is to use CSS and the "border-style" attribute. Even then, some of the options won't look *exactly* the same in both browsers, only close). If the site that's hosting your page won't allow CSS, the only think I can think to do is to 0 that border, define a background color and a 2 px cellpadding, then put another 0 bordered table inside the first. Inelegant and bloats your filesize, but should work.
Melissa
http://www.htmlcodetutorial.com/tables/ ... p_149.html
"Guest" is right, the only way to get table borders to look the same in both IE and FF is to use CSS and the "border-style" attribute. Even then, some of the options won't look *exactly* the same in both browsers, only close). If the site that's hosting your page won't allow CSS, the only think I can think to do is to 0 that border, define a background color and a 2 px cellpadding, then put another 0 bordered table inside the first. Inelegant and bloats your filesize, but should work.
Melissa
-
- Guest
- Kelson
- Posts: 161
- Joined: August 19th, 2005, 12:03 pm
- Contact:
No, you went to a Chicago style pizza parlor and complained that you didn't get NY style pizza.
Do you actually want help solving the problem, or do you just want a place to complain?
Do you actually want help solving the problem, or do you just want a place to complain?
Can Firefox users and Opera fans agree on anything? The Alternative Browser Alliance
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
-
- Guest
-
- Guest
-
- Guest