[css-d] Questions regarding how to make selected li red with css

2008-10-07 Thread Laura
Hi Everyone...

I have two questions and I'm hoping someone here might know the
answers...

I'm not that experienced with css, and am very curious if anyone
out here would know how I can achieve the effect of highlighting
the selected item on my list in red instead of blue.

The page is at http://www.octos.org/ooth/2new.htm

I have validated it and noted that the function that I'm using
that will allow me to put the document in the window immediately
to the right uses &&'s and that is throwing errors with the
validator. From what I can tell there are no other errors except
those in the AJAX script.

Are there any hints for having the script tag elements validate
or will they always give errors?

Much thanks for your assistance and consideration. Have a
wonderful day everyone! 

-- 
Laura mailto:[EMAIL PROTECTED]
-- 

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Questions regarding how to make selected li red with css

2008-10-07 Thread David Laakso
Laura wrote:
>
> I'm not that experienced with css, and am very curious if anyone
> out here would know how I can achieve the effect of highlighting
> the selected item on my list in red instead of blue.
>
> The page is at http://www.octos.org/ooth/2new.htm
>   

This should do that--
#navcontainer a:hover {
background-color: red; <- ::red
border-bottom: none;
color: #FF;
margin-bottom: 0;   
text-decoration: none;
}



> I have validated it and noted that the function that I'm using
> that will allow me to put the document in the window immediately
> to the right uses &&'s and that is throwing errors with the
> validator. 

Tidy Online is helpful. Correct what Tidy does not correct manually.

-- 

A thin red line and a salmon-color ampersand forthcoming.

http://chelseacreekstudio.com/

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Questions regarding how to make selected li red with css

2008-10-07 Thread David Laakso
Laura wrote:
> hi David,
>
> That did change the color, but when the page changes on the other
> side the red goes away. Perhaps I did not explain it right, but
> when they look at the document, they can't really tell where
> there are since the querystring doesn't change to reflect the
> page... Do you know if there is a way to make the red stay even
> if not hovered over?
>
> I'll look at the tidy thing, can I replace && in a script with
> &&?
>
> Much thanks for your assistance
>
>   


Sorry, no-- not without changing the markup. *Perhaps someone else on 
the list can answer your question(s).*
Or ask on the list you started from:
webdesign-l
Dunno, about the double, & either-- I rely on Tidy for such matters...




-- 

A thin red line and a salmon-color ampersand forthcoming.

http://chelseacreekstudio.com/

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Questions regarding how to make selected li red with css

2008-10-07 Thread Benjamin Hawkes-Lewis
Laura wrote:
> Are there any hints for having the script tag elements validate
> or will they always give errors?

Short answer: put the script in question in an external script imported 
with the "src" attribute rather than inline.

Longer answer, read:

* XHTML 1.0 specification on "Script and Style elements":
   http://www.w3.org/TR/xhtml1/#h-4.8

* XHTML 1.0 specification's compatibility suggestions for "Embedded 
Style Sheets and Scripts" when serving as text/html tag soup:
   http://www.w3.org/TR/xhtml1/#C_4

* "HTML Comments in Scripts" for a discussion of some of the issues:
   http://lachy.id.au/log/2005/05/script-comments

You might also want to read:

http://www.webdevout.net/articles/beware-of-xhtml

and think about whether XHTML was really the best choice on technical 
grounds for your use-case …

Hope that helps.

--
Benjamin Hawkes-Lewis
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/