There are two problems.
First,
there is no such CSS pseudo-class as "selected". Please see:
http://www.w3.org/TR/selectors/#pseudo-classes[
^].
See also:
http://stackoverflow.com/questions/8619406/css-selected-pseudo-class-similar-to-checked-but-for-for-select-elements[
^].
The author of the answer referenced above explains the situation and suggests using "checked" which would work for some elements (read this answer), but this is the second problem: the elements like pages or page numbers are not a control elements, so
they don't have any properties like selection of checked.
So, you can follow the advice in Solution 1 and detect mouse put over the element. But I have a better advice:
don't try to highlight page number at all. Good style of design principles dictate that we should not add any behaviors which don't have clear purpose. How highlighting of the page numbers can help readability and navigation? Think about it. They would only distract the user from reading the valuable content.
Usually, elements should be highlighted to attract the attention of the user to some functionality. They say the user: "click me". This is not your case. When the use clicks the page number, nothing happens, it will only confuse the user.
—SA