how to center in browser
Out of context: Reply #17
- Started
- Last post
- 25 Responses
- sp0
div, when used properlly - and that means with the correct doctype, can do anything a table can do and a little more.
for instance, with divs as the layout you can have different columns be vertically liquid isntead of conforming to the overall block size.
so, if you don't want the content in column 1 to be the same height in column two - possible because there is less verbage or imagery, then it doesn't have to.
where as with table cells, cell 1(column 1) and cell 2 (column 2) would both be the same height because the table itself determines height restictions.
not effective you are trying to stack rows in a column and have those rows change height accourding to position and amount of content.
in all actuality, the only reason to use tables is to display data in spreadsheet form.
of course, the downfall is - and this is true with just about anything - backwards compatibility is none existant.
there are ways of retro-fitting sites, but it's best to just accept that a) 4.x browsers are a thing of the past, and b) not everyone uses windows and internet explorere.