In article <47**********************@read.cnntp.org>,
"The Bicycling Guitarist" <Ch***@TheBicyclingGuitarist.net>
wrote:
"dorayme" <do************@optusnet.com.auwrote in message
news:do**********************************@news-vip.optusnet.com.au...
In article <47**********************@read.cnntp.org>,
"The Bicycling Guitarist" <Ch***@TheBicyclingGuitarist.net>
wrote:
Third, (but I have not studied your site properly so this may not
be convenient on the whole) you don't generally need to keep
putting class="menu2" if you use #menubar li a to specify a
style. It is briefer.
Thank you for your help, Dorayme.
Well I followed the first suggestion so far, but I plan to implement the
second suggestion (no link, just styling the li for the current page), and I
want to learn how to do the third suggestion. It's a little beyond me right
now. I automatically think "tic-tac-toe" when I see #.
OK, about the third, here is a sort of case where the savings are
considerable - might get you to see how easy it is:
Suppose you want to float a *lot* of divs, you want them to be a
certain size as well and maybe other special things. Let us
suppose they are in a wrapper div.
<dv id="wrapper">...lots of divs within...</div>.
It is a bore (as well as adding to bandwidth and clutter) to
class every single inner div. It is easier to target them all in
one go by:
#wrapper div {float: left; width: ... etc ...;}
This targets all the div children of the #wrapper div. Not any
other divs elsewhere. You can also use classed wrappers. ID here
is just an example (to emphasise that it is unique and therefore
a rather nice handle to identify a whole mob of its children).
From what I did see of your css, I am sure you do understand this
idea to a degree (see your own css!).
--
dorayme