Matthew Macdonald-Wallace wrote:
OK, I need more help on this (or at least a fresh pair of eyes!)
Can anyone explain to me why http://www.helpmeimadad.com/index.php does
not display the orange background behind the "Home" at the top of the
page but http://www.helpmeimadad.com/helpme.html does?
They both use the same CSS, the only difference is that one is
dynamically generated and the other one isn't.
It's quite possible I've missed a tag somewhere, but I just can't see
it!
The difference is that helpme.html has the id="selected" on the A tag
(where the stylesheet says it will be) but index.php has it on the LI
rather than the A.
Firefox's Web Developer toolbar is bloody handy for stuff like this, the
View Style Information option lets you see what style declarations are
affecting any element on the page. Clicking the home link shows:
#menu li a:hover, #menu li a#selected, #menu li a#selected:hover (line 46)
{
background-color: #ffffff;
background-image: url(/style/menu_hover.png);
background-repeat: repeat;
background-attachment: scroll;
background-x-position: 0%;
background-y-position: 0%;
color: #70695a;
}
Note the "li a#selected" - the A tag with id="selected" within an LI
within something with the ID "menu".
Cheers
Dave P
PS, totally off-topic - anyone use Facebook? I'd avoided it for ages
(thought it was far too much like MySpace) but it actually seems pretty
damn slick!).
____ The WDVL Discussion List from WDVL.COM ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016
Please include the email address which you have been contacted with.