2006-10-21

Browser compatiblity

I've worked on some web projects in last centry. One big headache is the browser compatiblity. Netscape and IE are very different in many ways. To implement a cool look and ensure it won't be broken on both browsers is very difficult at that time.

Now I'm working on a web project again. I find little has changed. Netscape has fade away, but I have to face IE, Firefox, Safari, and other browsers.

For instance, it's easy to put a table on page. but our artist wants a solid border around each row, and some space betwen each rows. It's far more difficult than I had thought.

And we want the table to have a fixed header and scrollable body. I found a good example on http://www.imaputz.com/cssStuff/bigFourVersion.html

But here is a trick, if we don't declare the html as xhtml in DOCTYPE, it doesn't work for IE.I never believed a comment like &lg!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...> would affect the CSS behavior!

The good news is I learned a lot of CSS tricks last week.
The bad news is I never left office before 9pm, in fact, it's 1am on last Friday.

Labels: ,