|
Posted by tshad on 08/08/07 15:26
"John Hosking" <John@DELETE.Hosking.name.INVALID> wrote in message
news:46b923d6$1_5@news.bluewin.ch...
> tshad wrote:
>> Unfortunately, I don't have a public site to use - just an intranet.
>
> Please don't top-post.
>
> Please get access to a public site and post your code there and a URL
> here. Nobody wants to see all this code out of context. There are free
> servers where you can put up a page for free, if your ISP doesn't provide
> one.
>
Where would I find one of those?
That would make it easier.
>>
>> In the following, can I put the selectors together (the following works -
>> I just want to see if I can combine them)?
>
> Yes, did you not read my post up-thread? You responded to it.
> In message <46b22034$1_6@news.bluewin.ch> I said
>
>> Also BTW: since these three rule sets are identical, you can combine them
>> to
>>
>> a.bodybold:link, a.bodybold:visited, a.bodybold:active
>
> Note the commas delimiting three selectors.
>
> Back to your last post:
>>
>> I tried
>>
>> .nav-menu-side li a:link a:visited a:hover a:active
>
> The delimiter is a comma. Between each comma you need the exact (full)
> selector you want added to the list for the shared ruleset. So:
>
> .nav-menu-side li a:link,
> .nav-menu-side li a:visited,
> .nav-menu-side li a:hover,
> .nav-menu-side li a:active { color: #666666; }
>
>> And
>>
>> .nav-menu-side li a:link a:visited a:hover a:active
>
> How is this second attempt different from the first? I don't see it.
My mistake. I actually meant to have commas between them but left it out.
And, as you pointed out, that wouldn't work as I needed the whole selector.
>
>> neither of these worked.
>
> Two (identical) stabs in the dark. Get a reference and use it.
I actually have a couple of references, but from them references I couldn't
figure out the differences between:
..bodybold a:link
and
a.bodybold:link
At least not directly. For example, I didn't see in my references (may have
missed it) that a:Link affects the other classes.
>
> BTW, if you have identical rules for :link, :hover, and :active, you can
> probably just specify a:link, a:visited and leave out the others, as they
> are affected by the a:link selector.
Are you saying that a:hover and a:active is affected by a:link or a:hover is
affected by a:link and a:active is affected by visited? Just wanted to make
sure.
Also, since we are using the pseudo selectors, is
a{
}
not really useful? I can't figure out why I would use the "a" tag by
itself.
>
So I assume that the following:
..bodybold a:link
{
font-family:Geneva, Arial, Helvetica, sans-serif;
font-style:normal;
font-size:11px;
font-weight:Bold;
text-decoration:none;
color:#666666
}
..bodybold a:visited
{
font-family:Geneva, Arial, Helvetica, sans-serif;
font-style:normal;
font-size:11px;
font-weight:Bold;
text-decoration:none;
color:#666666
}
..bodybold a:hover
{
font-family:Geneva, Arial, Helvetica, sans-serif;
font-style:normal;
font-size:11px;
font-weight:Bold;
text-decoration:none;
color:#666666
}
..bodybold a:active
{
font-family:Geneva, Arial, Helvetica, sans-serif;
font-style:normal;
font-size:11px;
font-weight:Bold;
text-decoration:none;
color:#666666
}
Can be changed to:
..bodybold a:active, .bodybold a:visited, .bodybold a:hover, .bodybold
a:active
{
font-family:Geneva, Arial, Helvetica, sans-serif;
font-style:normal;
font-size:11px;
font-weight:Bold;
text-decoration:none;
color:#666666
}
or
..bodybold a:active, .bodybold a:visited
{
font-family:Geneva, Arial, Helvetica, sans-serif;
font-style:normal;
font-size:11px;
font-weight:Bold;
text-decoration:none;
color:#666666
}
The same with this:
a.bodybold:link
{
font-family:Geneva, Arial, Helvetica, sans-serif;
font-style:normal;
font-size:11px;
font-weight:Bold;
text-decoration:none;
color:#666666
}
a.bodybold:visited
{
font-family:Geneva, Arial, Helvetica, sans-serif;
font-style:normal;
font-size:11px;
font-weight:Bold;
text-decoration:none;
color:#666666
}
a.bodybold:hover
{
font-family:Geneva, Arial, Helvetica, sans-serif;
font-style:normal;
font-size:11px;
font-weight:Bold;
text-decoration:none;
color:#666666
}
a.bodybold:active
{
font-family:Geneva, Arial, Helvetica, sans-serif;
font-style:normal;
font-size:11px;
font-weight:Bold;
text-decoration:none;
color:#666666
}
can be changed to:
a.bodybold:link, a.bodybold:visited, a.bodybold:hover, a.bodybold:active
{
font-family:Geneva, Arial, Helvetica, sans-serif;
font-style:normal;
font-size:11px;
font-weight:Bold;
text-decoration:none;
color:#666666
}
or
a.bodybold:link, a.bodybold:visited
{
font-family:Geneva, Arial, Helvetica, sans-serif;
font-style:normal;
font-size:11px;
font-weight:Bold;
text-decoration:none;
color:#666666
}
Thanks,
Tom
> --
> John
> Pondering the value of the UIP: http://blinkynet.net/comp/uip5.html
[Back to original message]
|