Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how to insert icons pseudo content

.css:after {
    content: "86";
    color: red;
}
.css.char:after {
    content: "†";
    color: blue;
}
.data:after {
    content: attr( data-icon );
}
.js:after {
    content: attr( data-icon );
}
.red:after {
    color: red;
}
.blue:after {
    color: blue;
}
Comment

how to insert icons pseudo content

var js = document.querySelectorAll( ".js" );
js[ 0 ].setAttribute( "data-icon", "u0086" );
js[ 1 ].setAttribute( "data-icon", "†" );
Comment

how to insert icons pseudo content

<div class="css">hard coded css content</div>
<div class="css char">hard coded css content char</div>
<br>
<div class="data red" data-icon="†">hard coded data-icon</div>
<div class="data blue" data-icon="†">hard coded data-icon char</div>
<br>
<div class="js red">data-icon by js</div>
<div class="js blue">data-icon by js char</div>
Comment

PREVIOUS NEXT
Code Example
Css :: iphone css 
Css :: java to python 
Css :: make background overlay css 
Css :: css transparent background behind text 
Css :: css transforms 
Css :: css nesting 
Css :: send element to center of div 
Css :: Responsive Web Design with HTML5 and CSS 
Css :: transition css react 
Css :: css waves background 
Css :: for...of...loop 
Css :: css grid first child 
Css :: card tailwind css 
Css :: learn css animation 
Css :: liste commandes disponibles linux 
Css :: alacritty auto start fish 
Css :: WSGI: Truncated or oversized response headers received from daemon process 
Css :: in 10 seconds fade in a card html css 
Css :: css or selector 
Css :: how to make background image NOT scroll with the rest of the page. 
Css :: css preloader, preload website screen 
Css :: make element fill page 
Css :: css assign multiple classes to one element 
Css :: pyqt5 qresources 
Css :: how mto change the label font style in css 
Css :: css 4 3 ratio 
Css :: css table grid 
Css :: vim unset number 
Css :: sass syntax cheat sheet 
Css :: table td css 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =