Top "Css-selectors" questions

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

CSS '>' selector; what is it?

I've seen the "greater than" (>) used in CSS code a few times, but I can't work out what it …

css css-selectors
What does the "+" (plus sign) CSS selector mean?

For example: p + p { /* Some declarations */ } I don't know what the + means. What's the difference between this and just defining …

css css-selectors
Complex CSS selector for parent of active child

Is there a way to select a parent element based on the class of a child element in the class? …

css css-selectors
CSS selector for "foo that contains bar"?

Is there a way to make a CSS Selector that matches the following? All OBJECT elements which have a PARAM …

css css-selectors
How to combine class and ID in CSS selector?

If I have the following div: <div class="sectionA" id="content"> Lorem Ipsum... </div> Is there …

css css-selectors
How to select label for="XYZ" in CSS?

HTML: <label for="email">{t _your_email}:</label> CSS: label { display: block; width: 156px; cursor: pointer; …

css css-selectors
Sass Nesting for :hover does not work

I've written this code, but it does not work. What is my problem? .class { margin:20px; :hover { color:yellow; } }

sass css-selectors
Can the :not() pseudo-class have multiple arguments?

I'm trying to select input elements of all types except radio and checkbox. Many people have shown that you can …

css css-selectors
CSS Selector that applies to elements with two classes

Is there a way to select an element with CSS based on the value of the class attribute being set …

css css-selectors
How to style readonly attribute with CSS?

I'm currently using readonly="readonly" to disable fields. I'm now trying to style the attribute using CSS. I've tried using …

html css css-selectors