need to make a good layout for a project and have no idea where to start... apparently tables are considered harmful, so will this just involve a lot positioning forms and shit? because that seems annoying as fuck
>>5
oh I know it but finding all the fucking labels for what i can use on each element is a bitch, why isn't there just like an online dictionary of html elements and allowed modifiers for that tag in css
And don't listen to the "tables considered harmful" fools, they're like the "state considered harmful" Haskell/Lisp guys. Use what works.
I find a mix of tables and divs to be the most practical. Tables are good for relative positioning, divs and spans for changing styles on "individual bits and pieces" that don't fit into table cells. Look at the source code of this page for an example. (postform = table, thread enclosures = divs, poster name/email/date = spans)
>>8
He obviously hasn't programmed CL at least, because it's full of mutable state.
Name:
Anonymous2011-11-22 17:56
Design is overrated, just structure content in divs, try to get a pleasant spacing and typeface in your style sheet, div a big picture near the top but also keep an h1, and just make it clean. As a bonus, when you have time you can craft special style sheets for particular devices / layout modes (like printer mode).
If you must have horizontal division have a parent div, and float 1 div inside, and set a margin in another div for elastic width and height, or alternatively float both divs for static width and height. With CSS its just better to work with whats offered than to fight it. You could go full on making an intricate design with tables or all the CSS hacks, but remember search bots and the blind don't want your design, old people can't read well with your design and will zoom text 20x if they know how, cell phone users will just rage at your design as they fingerzoom, and 99/100 of the rest of the humans with a desktop and non-failing eyes won't notice your design.
<!doctype html>
<meta charset=utf-8>
<title>Edgy valid HTML5 document</title>
<p>The parsing algorithm has been standardized. This is a valid document! Isn't that cool?!
>>22
XHTML has failed because all the real-world developers are too FUCKING retarded to send their FUCKING documents as FUCKING application/xhtml+xml. Now their FUCKING documents do not reap the FUCKING benefits of XHTML, because it's parsed with the FUCKING HTML parser.
Name:
Anonymous2011-11-24 9:17
>>15
No, it isn't. It's valid via parsing, but not a spec-valid document. This is the minimum spec-valid document:
>>27
All good parsers will parse it as XML if it has the correct doctype at the top.
Name:
Anonymous2011-11-24 9:30
>>28 <meta charset="utf-8">
How is that supposed to be valid XML?
Name:
Anonymous2011-11-24 9:31
>>30
No deployed parser does this. It is also not the sign of a 'good' parser either, because that behaviour is against spec. The parser used is dependent on the MIME type, you FUCKING luddite.
Name:
Anonymous2011-11-24 9:32
>>30
The DTD describes the available tags and attributes, in an SGML, HTML or XML document. It does not determine the syntax chosen though.