Top "Css-selectors" questions

Selectors are patterns that match against elements in a document tree.

What is the mouse down selector in CSS?

I have noticed that buttons and other elements have a default styling and behave in 3 steps: normal view, hover/focus …

html css css-selectors
Matching an empty input box using CSS

How do I apply a style to an empty input box? If the user types something in the input field, …

css input css-selectors
Remove a CLASS for all child elements

Given the following HTML: <div id="table-filters"> <ul> <li class="active">blah</li&…

jquery css-selectors
How do I select the "last child" with a specific class name in CSS?

<ul> <li class="list">test1</li> <li class="list">test2</li&…

css css-selectors
:last-child not working as expected?

The issue lies within this CSS and HTML. Here is a link to jsFiddle with the sample code. HTML <…

html css css-selectors
CSS selector (id contains part of text)

I have a question. I have elements something like this: <a> element with id = someGenerated Some:Same:0:name &…

css css-selectors webdriver
first-child and last-child with IE8

I have some css for adjusting things in my table. Here it is: .editor td:first-child { width: 150px; } .editor td:…

css internet-explorer-8 css-selectors
Can I have multiple :before pseudo-elements for the same element?

Is it possible to have multiple :before pseudos for the same element? .circle:before { content: "\25CF"; font-size: 19px; } .now:before{ …

css css-selectors pseudo-element css-content
CSS Pseudo-classes with inline styles

Is it possible to have pseudo-classes using inline styles? Example: <a href="http://www.google.com" style="hover:text-decoration:…

html css css-selectors pseudo-class inline-styles
What is the difference between cssSelector & Xpath and which is better with respect to performance for cross browser testing?

I am working with the Selenium WebDriver 2.25.0 on multilingual web application & mainly test the page content (For different languages …

selenium selenium-webdriver xpath css-selectors webdriver