Top "Pseudo-element" questions

CSS pseudo-elements allow for an enhanced display of content within elements or the ability to generate extra beginning or ending content for elements.

CSS :after content below a select element causes click not to work

I have this (simplified) css for the select element to get rid of the browser-specific appearance .select{ display:inline-block; position:…

css select absolute pseudo-element
::before pseudo-element stacking order issue

When statically positioned, the ::before pseudo-element stacks (z-index) before the child's content, but after the child's background. Can anyone explain …

css z-index pseudo-element
How to get a DOM element's ::before content with JavaScript?

I want to know whether it is possible to get a DOM element's ::before content, which was set by CSS3. …

javascript css dom pseudo-element
Problems with :before and :after in Internet Explorer 10

This basically adds two lines before and after the h1 element, like this: The line is just a background color …

css internet-explorer pseudo-element before-filter
How to capitalize first line with CSS? ::first-line pseudo-element not working

Right now I've got a paragraph and I'd like to capitalize the entire first line. I've set the first paragraph …

css css-selectors line pseudo-element capitalize
Is it somehow possible to style an iframes before/after pseudo-element?

As the title says, is there a way to style an iframes pseudo before/after? Without wrapping the iframe with …

css iframe styling pseudo-element css-content
Add a link href with css content

I need to set an url after the class module-content, with pure css. This code doesn't work, but basically i …

jquery css pseudo-element css-content
What does :: and ~ do in css?

I was looking at a code made by a guy in twitter and it is like this : div::after { -webkit-transform: …

css pseudo-element css-selectors
after pseudo element not appearing in code

I'm trying to use the after pseudo element to add some effects to a site. <div class="product-show style-show"&…

html css pseudo-element css-content
Can I target a :before or :after pseudo-element with a sibling combinator?

Is there a reason why this CSS doesn't work? http://jsfiddle.net/6v5BZ/ a[href^="http"]:after { content:""; width:10…

css css-selectors pseudo-element