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
I am new to CSS and having problem in it
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Vjatseslav Krosin9 reputationPosted Aug 31, 2011, 12:54 PM EDT
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.
Andrew FensterRank #983 · 2K reputationPosted Sep 1, 2011, 12:31 PM EDT
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.