On Tue, 1 May 2007, Brenton Strine wrote:
Say, for example, you have a website which has sections of content that
are indented variously. It would be easy to accomplish the different
styles using classes:
div class=firstgroupThis text isn't indented at all!/div
div class=secondgroupThis
On 1 May 2007, at 20:21, Brenton Strine wrote:
However, if I then wanted to add additional special
styling to the first and third div, (e.g.. a border and
background color) it is less graceful. I could add style
attributes, but that would be wasteful if I want to do
this on a large scale.
I would like to know what other people think about
creating more empty elements in HTML5.
Say, for example, you have a website which has sections
of content that are indented variously. It would be easy
to accomplish the different styles using classes:
div class=firstgroupThis text isn't
On Tue, 01 May 2007 21:21:20 +0200, Brenton Strine
[EMAIL PROTECTED] wrote:
A nice solution would be the addition of a few div tags.
(e.g. div2, div3, div4 and div5.) Then you could
do something like this:
HTML is a language for markup meaningful by itself, not just as a hook for
CSS.
If you're marking up stuff as a tree, the markup should probably look like a
tree:
section id=treeFirst group
divSecond Group
divThird Group/div
/div
/section
if what you want it a tree, that structure is better, so the CSS would
simply say:
#tree, #tree div { margin-left: 5em; }
If you want to
HTML is a language for markup meaningful by itself, not
just as a hook for CSS.
div2doesn't mean anything.
That doesn't seem very practical to me. If all HTML tags
imply some meaning, then you are advocating the
elimination of presentation, not it's separation. If
there weren't any CSS hooks,
On 5/1/07, Brenton Strine [EMAIL PROTECTED] wrote:
If all HTML tags
imply some meaning, then you are advocating the
elimination of presentation, not it's separation.
An HTML document ought to make semantic sense, without regard to
presentational information. The very definition of the