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.

Font Awesome 5, why is CSS content not showing?

I am trying to use FontAwesome in the content of CSS. It appears with the code for the icon instead …

css font-awesome pseudo-element font-awesome-5
How to position :before & :after pseudo-elements on top of each other?

What's the best way to position one pseudo-element directly on top of another pseudo-element? Let's say I want to make …

html css pseudo-element
width and height doesn't seem to work on :before pseudo-element

Here is a fiddle. <p>foo <a class="infolink" href="#">bar</a> baz</…

css pseudo-element
Two ::after pseudo-elements

I'd like to apply two css ::after pseudo-elements to a single DOM element, each with a different colour. (Yes, I …

css pseudo-element
Input placeholder using CSS only

I know there are lot's of questions regarding this query here but none of them provide the solution for me. …

html css pseudo-element css-content
How to make a hover effect for pseudo elements?

I have a this setup: <div id="button">Button</div> and this for CSS: #button { color: #…

jquery css pseudo-element pseudo-class
Can you add line breaks to the :after pseudo element?

I want to append a <br /> to a particular class. Using the :after pseudo class simply displays <…

css pseudo-element
Possible to make a:after/before pseudo elements clickable as part of the link?

pseudo elements a:after a:before allow you to add text that appears to be part of the link. However, …

html css google-chrome pseudo-element
Target :before and :after pseudo-elements with jQuery

Possible Duplicate: Manipulating CSS pseudo-elements using JQuery On pageload I want the :before and :after elements on a class to …

jquery pseudo-element
How can I get IE8 to accept a CSS :before tag?

I have the following CSS code .editable:before { content: url(../images/icons/icon1.png); padding-right:5px; } this is used in …

css internet-explorer-8 pseudo-element css-content