Jump to content

CSS Chapter 17 - Tables, Example#1


Jack Tripper
 Share

Recommended Posts

The following is taken from the W3C specification Cascading Style Sheets, level 2: Chapter 17 - Tables. It is the very first example at the start of the chapter. The HTML renders properly in Firefox, but not in Internet Explorer.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"     "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD>   <STYLE type="text/css">      /* The following CSS rule centers the text horizontally in the header cells and present the data with a bold font weight:*/      TH { text-align: center; font-weight: bold }      /*The next rules align the text of the header cells on their baseline and vertically centers the text in each data cell:*/      TH { vertical-align: baseline }      TD { vertical-align: middle }      /*The next rules specify that the top row will be surrounded by a 3px solid blue border and each of the other rows will be surrounded by a 1px solid black border:*/      TABLE { border-collapse: collapse }      TR#row1 { border-top: 3px solid blue }      TR#row2 { border-top: 1px solid black }      TR#row3 { border-top: 1px solid black }      /*The following rule puts the table caption above the table:*/      CAPTION { caption-side: top }   </STYLE></HEAD><BODY>   <TABLE>      <CAPTION>This is a simple 3x3 table</CAPTION>      <TR id="row1">         <TH>Header 1      <TD>Cell 1        <TD>Cell 2      <TR id="row2">         <TH>Header 2      <TD>Cell 3        <TD>Cell 4      <TR id="row3">         <TH>Header 3      <TD>Cell 5        <TD>Cell 6   </TABLE></BODY></HTML>

So what's the problem?

Link to comment
Share on other sites

IE6 was released before CSS2
May 1998: Cascading Style Sheets, level 2 CSS2 SpecificationJune: 1998: Internet Explorer 5.0 Beta 1August 1998: Internet Explorer 5.0 Beta 2March 1999: Internet Explorer 5.0November 1999: Internet Explorer 5.01December 1999: Internet Explorer 5.5 Beta 1July 2000: Internet Explorer 5.5March 2001: Internet Explorer 6.0 Beta 1August 2001: Internet Explorer 6.0
Link to comment
Share on other sites

I think what aspnetguy meant was something more of the lines...IE6 was released on a deadline and because of that, it didn't sucseeded in adding most CSS2 features support. The future IE7 (currently beta) is going to have better CSS2 support (note: no one said anything for "complete").

Link to comment
Share on other sites

I think what everyone else is trying to say is that the IE managers have never really cared about supporting CSS well. So to answer your original question, the problem is that IE doesn't support it. We can only hope it is better with IE7. But if not, you can blame Microsoft for deciding not to support an 8-year old specification. Send them an email and see how much they care.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...