---- DIV - how to stretch to auto fill empty area?
alt131 - 2:11 am on Jan 28, 2012 (gmt 0)
Welcome to css esso82,
that's how you say 'you idiot' while making it look elegant ..
We don't call anyone "you idiot" in this forum - directly or indirectly esso, so I apologise if that was the meaning conveyed by tangor's post.
.. is this correct technique
Depends on what you mean by "correct". :) Yes it may work, but there is a school of thought that believes in using semantic mark-up. As penders has already said a list of links is a list, so should be marked up as such. Definitely don't use a table - the references to that were to the css display:table property/value, not an actual table in the HTML mark-up. As Marshall has mentioned, support for that property has improved, but I'd suggest that unless you are definitely only supporting very modern browsers (say in a controlled environment like an intranet) it probably may not be the best choice for you at this stage.
The links penders provided take you to examples of using a list for a menu. Marshall's idea can be applied to a list if you think of the <ul> as the "container div" ("navigation division") and each of <li> as the "link divs" (divisions 1 through 4) which are being floated/left right as required. ... if that makes sense :)