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">
....


ref
http://bytes.com/topic/asp-net/insights/942081-how-change-pager-style-gridview
http://stackoverflow.com/questions/1182189/css-child-vs-descendant-selectors

Comments

Popular posts from this blog

Asp.net Publishing Broke Site - "App_WebReferences is not allowed because the application is precompiled"

Telerik - Custom Group Footers In RadGrid

Bootstrap Modal Popup is Grayed Out