Hi Georg, that was an excellent response! Saving this one to the archives.

Gunlaug Sørtun wrote:
> The one that works best - in each case :-)

Kinda what I was thinking, but wanted to hear it from the pros.

> I do add classes to ID'ed elements for certain things, but I find it
> easier to maintain projects where the mix of ID and classes is at a minimum.

Sounds good to me. I do prefer simplicity if at all possible.

> Your example might even end up without ID and/or class...
> body div {float: left; /* plus other styles */ }
> body div div {float: none; /* plus other styles */ }
> ...which saves a lot of bytes on multipage sites, but it depends on the
> layout if it'll work.

Ahhhh, did not even think about that approach. Saving bytes sounds good 
to me, very nice.  :)

> That often means that I style through "compacted one-liners" that are
> hard to read by humans but quicker to load and easy to execute by software.
> It also means that I leave out ID and classes where I can - like in the
> example above, and target elements "down the chain".

Hmmm, interesting... I never really looked at it like that. Something 
for me to start thinking about doing with my own code. Thanks for sharing.

Thanks for the great feedback Georg, very informative.  :)

Have a great day/night.  :D
Cheers,
Micky
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to