Sandy wrote: > Hey all, > > I have a little site where the main menu is an include. Each link list > item has an id, and I add a style for that id in the header of the > current page that shows it's the current item. > > http://askon.ca/en/index.shtml > http://askon.ca/en/css/askon.css > [...] > What I would love is to figure out how to put the whole page name in the > style so that I can eliminate the ids in the menu - something like > a[href ="index.shtml"] > except that doesn't work. > > Any thoughts? > > thanks! > Sandy
Hello Sandy, You should have a $ in that selector which indicates the end portion of an attribute string. a[class$="index.shtml"] {....} <http://www.w3.org/TR/css3-selectors/#attribute-substrings> -- Alan http://css-class.com/ Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] 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/