Top "Css-selectors" questions

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

What is the difference between a pseudo-class and a pseudo-element in CSS?

Things like a:link or div::after... Information on the difference seems scarce.

css css-selectors pseudo-class pseudo-element
Should I use single or double colon notation for pseudo-elements?

Since IE7 and IE8 don't support the double-colon notation for pseudo-elements (e.g. ::after or ::first-letter), and since modern browsers …

css internet-explorer-8 css-selectors internet-explorer-7 pseudo-element
Can the :before and :after pseudo-elements inherit height from the parent element?

I am wondering whether the :before and :after pseudo-elements can inherit the height from parent using the inherit value, without …

css css-selectors pseudo-element inheritance
Good ways to improve jQuery selector performance?

I'm looking for any way that I can improve the selector performance of a jQuery call. Specifically things like this: …

javascript jquery performance css-selectors
jquery-like HTML parsing in Python?

Is there any Python library that allows me to parse an HTML document similar to what jQuery does? i.e. …

python jquery css-selectors html-parsing
Select last 5 elements with jQuery

Is it possible to select the last 5 child divs of an element?

jquery css-selectors
How do I use jQuery to ignore case when selecting?

I'm currently attempting to disable a link using the following jQuery selector: $("a[href$=/sites/abcd/sectors]").removeAttr("href"); The …

jquery css-selectors case-sensitive
Can I use variables for selectors?

I have this variable: $gutter: 10; I want to use it in a selector like so SCSS: .grid+$gutter { background: red; } …

css variables sass css-selectors
CSS selector for element within element with inline style?

Is there a CSS selector to target elements with inline styles? So can I target the first span but not …

html css css-selectors inline-styles
Is there a jQuery-like CSS/HTML selector that can be used in C#?

I'm wondering if there's a jQuery-like css selector that can be used in C#. Currently, I'm parsing some html strings …

c# jquery css jquery-selectors css-selectors