> [...]
>> On a slightly different note:
[quoted text clipped - 32 lines]
> You also can try CSS3 box-sizing: border-box or -moz-box-sizing:
> border-box.
My understanding is that the level of support is poor. You can take
it out of strict, but that exposes other issues. I hadn't heard of the
-moz-box-sizing but I'm pretty sure IE won't grok that.
> Purists will avoid divs that are only there so you can style them but
> that have no "semantic" meaning but in my opinion that's setting the bar
> too high.
And there's a place for that. But in the current commercial market it's
a real disadvantage for the author as it leads to real plain jane pages.
I've been a bit stunned by the use of background images in some layouts.
Zen Garden does that, but I think this can be done simpler with just a
few more containers just for styles.
http://www.mezzoblue.com/zengarden/alldesigns/
> Sometimes people propose more extensions to CSS to achieve results that
> can already be achieved using the existing rules and another level of
> nesting. But if you ask me it's not worth it. Simplicity is more
> important, and perhaps people underestimate how much more power there is
> in a simple set of rules if you allow yourself to create a few extra
> elements to apply them to.
It's not like nesting tables. And divs have no special symantic
meaning. I think your argument of simplicity (and consistency) carries a
lot of weight.
I've waited a long time to get a reasonable set of rules that apply
(more or less consistently) to most browsers. I'm not waiting longer or
just designing for a few browsers or writing CSS hacks to turn on/off
styles (if I don't have to).
> Note also that the order in which elements appear in the source document
> already dictates a lot about the layout, however you style it: it's not
> as if content and presentation are completely decoupled. It has become a
> bit of a mantra to claim that they are or should be but the reality is
> more subtle.
That's true. I haven't hacked my way through the wikipedia layout,
but they go through some severe measures to order the content. I'm
impressed. I'm also confused.
Ultimately where I want to go is a very small handful of layouts that
can be assembled to achieve whatever look you want. I think this can be
done with a slight variant of the above layout (perhaps in 1 to 4 column
variants) or perhaps with unused "columns set to display: none".
Thanks, I feel better about the path I'm headed down.
Jeff
dorayme - 24 Mar 2008 23:00 GMT
> Ultimately where I want to go is a very small handful of layouts that
> can be assembled to achieve whatever look you want. I think this can be
> done with a slight variant of the above layout (perhaps in 1 to 4 column
> variants) or perhaps with unused "columns set to display: none".
>
> Thanks, I feel better about the path I'm headed down.
The other thing you can do is simply grab one of your previous jobs and
change the content. This way will have the advantage that the names of
the ids and classes, for example, will be reasonably meaningful.

Signature
dorayme
Jeff - 24 Mar 2008 23:55 GMT
>> Ultimately where I want to go is a very small handful of layouts that
>> can be assembled to achieve whatever look you want. I think this can be
[quoted text clipped - 6 lines]
> change the content. This way will have the advantage that the names of
> the ids and classes, for example, will be reasonably meaningful.
I do that with menus. And I have a set of standard ID's for base
containers, like header, content and footer. I rarely use classes (but
style by descendants), but that is changing. I don't have a standard
layout model or template and that is what I seek.
What I really want to do, since I'm on my own now, is spiff up the
details. I've been very plain in my designs and low graphics, but I want
to do things with curves and shapes, etc... lapping out of their
boxes. Traditionally this has been done with tables and chopping up
images, something I can't bring myself to do.
But, if you are using background images and few extra containers,
there is a lot that can be done.
I'm a very simple guy and I need to up my skill set. Ever seen my
personal site, for my photography, it's really nothing...
http://thelimit.com
Jeff
dorayme - 25 Mar 2008 03:06 GMT
> I'm a very simple guy and I need to up my skill set. Ever seen my
> personal site, for my photography, it's really nothing...
>
> http://thelimit.com
I would not say that at all. Don't be so modest.

Signature
dorayme
> <snip>
>
[quoted text clipped - 3 lines]
>
> <snip>
A div has no semantic meaning in any case. It's purely structural.
As far as nesting goes, I like to follow a sort of "spatial" standard.
If I need extra markup to accomplish something visually, I prefer
nesting rather than adding loose tags; for example, if I need a fancy
corner on something:
<div class="Module">
<div class="void">
<p>Some content</p>
</div>
</div>
rather than:
<div class="Module">
<div class="fancy-corner"></div>
<p>Some content</p>
</div>
because I like it when the entire structure of that module - sans any
styling - collapses into a single spatial box. This is just a personal
preference, though.
Also, when you're looking through the markup, it's much easier to read
this way (in my opinion) because you can easily see that the extra
nested div does not add a sub-structure to the module.
Of course, it's still best to try and minimize extra markup wherever
possible (this is often an interesting challenge, too).
Jeremy
Jeff - 25 Mar 2008 04:01 GMT
>> <snip>
>>
[quoted text clipped - 27 lines]
> styling - collapses into a single spatial box. This is just a personal
> preference, though.
I started off thinking that way, then I tried adding corners that
would go with an existing border and hit the wall (borders can't match
corners). Do you have a method for that? Without the border issue, I
really prefer your method. Perhaps I've missed a "trick".
But the again, combining a background image, such as a gradient, that
goes through the container, with another one positioned differently,
is impossible without nested divs.
> Also, when you're looking through the markup, it's much easier to read
> this way (in my opinion) because you can easily see that the extra
> nested div does not add a sub-structure to the module.
I'm not so worried about that because you can mark the div's class in
a way that this is evident. And that bit of html can live on a single
line. I'm not crazy about it, but I don't mind it.
> Of course, it's still best to try and minimize extra markup wherever
> possible (this is often an interesting challenge, too).
Well, you could remove it, if it isn't needed. It doesn't bother me so
much because it is so little html. But then, I haven't lived with it
yet... Ideally what I would like is a flexible framework to design with.
Now, I've lived with nested table Dreamweaver html from a designer,
so my bar is lower. After you've read *that* html, this is clarity.
Jeff
> Jeremy