CSS Child vs Descendant Selectors
Needed to style the paging elements "Next, First" etc, on a gridview pager. I was having some trouble selecting the right elements. No wonder becuase when you view where the actual Next element is in the html below you really have to go out of your way to get to the a element. The descendant operator "s1 s2 {styles}" works, although I am not sure about its speed. .alphaLink td a { padding:5px; } < tr class =" alphaLink " > < td colspan =" 7 " > < table > < tbody > < tr > < td > < a href =" javascript:__doPostBack('dnn$ctr842$CSearch$gvCSearch','Page$Next') " > Next </ a > .... ref http://bytes.com/topic/asp-net/insights/942081-how-change-pager-style-gridview http://stackoverflow.com/questions/1182189/css-child-vs-descendant-selectors