Tuesday, December 23, 2008

IE6 Quirks When Sizing HTML Elements

IE6 rolls with another party foul at the HTML kegger.

You can set the height and width of elements in Mozilla browsers to be 100%, or some percentage thereof.

Guess what.

In IE6 these elements will not appear. It doesn't seem to be enough to then use JavaScript to set the element width and height to a fixed value. They've got to start fixed.

IE6 actually allows a percentage width, but the height had better start out absolute or your element will just disappear-- in fact it will have a height of 0px, no matter what the IE debugger tells you.

No comments:

Labels

Blog Archive

Contributors