Hi all,
I am new to CSS and having problem in it. I want to create a list in HTML, user can select only one item at a time, when any item in the list is moused over it is heighlited, when any item in the list is clicked it is shown in bold, when new item is selected the bold formating of the previous must be removed first.
I want to get these things done using CSS.
please help me with this, thanks in advance
Loading
Andrew FensterPosted Sep 1, 2011, 4:31 PM
However the part about selecting an item will require either some server side code or some Javascript. I don't think it can be done with CSS alone. You could add an on click event to each list item. The code for this would set a CSS style for the clicked item.
Vjatseslav KrosinPosted Aug 31, 2011, 4:54 PM
This is a link
a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective.
a:active MUST come after a:hover in the CSS definition in order to be effective.