03-05-2006, 06:27 AM
Well as most of you probably know, fixed width is not highly regarded on the accessibility and standards front, but I was wondering how to manage with one fixed width column and then have the remaining section pad out to the remaining width?
I'm using XHTML and CSS.
Unfortunately, as much as the W3C wants you to use relative sizing, they really don't provide any really good methods for achieving that (plus the browser support has left much to be desired).
My suggestion would be to use tables for this, as they're widely supported. You would just set the border-collapse to collapse, remove padding for the cells, have the left cell at 100px, and leave the width for the right cell blank.
But if you feel that you must use divs, I know at least one way, but it only works in FireFox:
Although, if you added a width to the style for div2, and set it to a percentage, then the cell would expand ALMOST the whole width in IE as well (but will remain expanding in FireFox)