Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Inconsistent appearance of tables on different browsers

Reply to topic
Author Message
  • Joined: 08 Dec 2005
  • Posts: 488
  • Location: Melbourne, Australia
Reply with quote
Inconsistent appearance of tables on different browsers
Post Posted: Wed May 25, 2011 12:54 am
I have always viewed the wiki using Firefox 3.x and have got used to seeing tables with blue borders throughout:



I recently upgraded to Firefox 4 and was surprised to see that it displays tables differently - although the outer border remains blue, the borders between cells are shown in white:



Investigating further, Internet Explorer 8 and 9 also show white cell borders.

Presumably one of these appearances is as intended and the other is incorrect. But which is which?
Firefox3Table.png (2.55 KB)
Firefox3Table.png
Firefox4Table.png (2.53 KB)
Firefox4Table.png

  View user's profile Send private message Visit poster's website
  • Joined: 16 May 2002
  • Posts: 1356
  • Location: italy
Reply with quote
Post Posted: Wed May 25, 2011 2:24 am
For what it's worth...


Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.7.12) Gecko/20050919 Firefox/1.0.7


Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.65 Safari/525.19


Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14745
  • Location: London
Reply with quote
Post Posted: Wed May 25, 2011 7:35 am
The blue lines are intended. I need to mess with the CSS a bit, please let me know if you figure out what I'm missing before I get around to it.
  View user's profile Send private message Visit poster's website
  • Joined: 16 May 2002
  • Posts: 1356
  • Location: italy
Reply with quote
Post Posted: Wed May 25, 2011 8:15 am
Does this page help? Something like
table
{
border-collapse:collapse;
}
table, td, th
{
border:1px solid rgb(0, 68, 119);
}
I can't test it on an actual smspower page of course, but a separate test seems to work correctly in the three browsers I can test, surprisingly including IE6.

Also let me remind you of this old pic:

In all seriousness, if you can get something to work fine in the major browsers such as Firefox and Chrome, don't bother with IE, nobody should use it anymore now that there are much better alternatives.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14745
  • Location: London
Reply with quote
Post Posted: Wed May 25, 2011 9:02 am
The tricky part is that we have both bordered and borderless tables, so I have to make a solution that works both ways, including when they're nested. It now does this:
#wikitext table[border="1"], #wikitext table[border="1"]>tbody>tr, #wikitext table[border="1"]>tbody>tr>td, #wikitext table[border="1"]>tbody>tr>th {
   border:1px solid #047;
}
which is frustratingly verbose but seems to do the trick.
  View user's profile Send private message Visit poster's website
  • Joined: 08 Dec 2005
  • Posts: 488
  • Location: Melbourne, Australia
Reply with quote
Post Posted: Wed May 25, 2011 11:20 am
Maxim wrote
The blue lines are intended.

That's what I expected (and hoped!).

Maxim wrote
It now does this [...] which is frustratingly verbose but seems to do the trick.

Looks good to me - the blue lines now show in both Firefox (3.6 & 4.0) and Internet Explorer (8 & 9).
  View user's profile Send private message Visit poster's website
  • Joined: 16 May 2002
  • Posts: 1356
  • Location: italy
Reply with quote
Post Posted: Wed May 25, 2011 12:36 pm
Still white in IE6, though.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14745
  • Location: London
Reply with quote
Post Posted: Wed May 25, 2011 1:20 pm
IE6 doesn't support the CSS "child of" selector (>), and without that, nested tables can't be styled without explicit classnames. I think I don't care about IE6.
  View user's profile Send private message Visit poster's website
  • Joined: 16 May 2002
  • Posts: 1356
  • Location: italy
Reply with quote
Post Posted: Wed May 25, 2011 2:18 pm
Maxim wrote
I think I don't care about IE6.
Now we're talking :)
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14745
  • Location: London
Reply with quote
Post Posted: Wed May 25, 2011 2:53 pm
Well, I want the site to be usable in IE6 and to be half-reasonable in a browser with no CSS. I only got off IE6 at work a few months ago, there are plenty of people who don't have the choice and we don't hate them.
  View user's profile Send private message Visit poster's website
  • Joined: 31 Jul 2011
  • Posts: 1
Reply with quote
Post Posted: Sun Jul 31, 2011 2:53 am
same with opera browser :(
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14745
  • Location: London
Reply with quote
Post Posted: Sun Jul 31, 2011 9:56 am
If you are adventurous, try messing with the Opera equivalent of Firebug/Developer Tools/whatever until it looks right and let me know what it needs... I may take a while to get a chance to look at it myself.
  View user's profile Send private message Visit poster's website
  • Joined: 08 Dec 2005
  • Posts: 488
  • Location: Melbourne, Australia
Reply with quote
Post Posted: Sun Sep 04, 2011 10:03 pm
Everything looks fine to me in Opera 11.51 (the latest version).
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!