Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css use value of attribute

/* html */
<p data-foo="Lorem Ipsum"></p>

/* css */
[data-foo]::before {
  content: attr(data-foo);
}
Comment

PREVIOUS NEXT
Code Example
Css :: css background color over image 
Css :: wp wpbakery bulder page alignment 
Css :: how to add fade-in with page transition 
Css :: min and max width media query 
Css :: checkbox border css 
Css :: css flex responsive 
Css :: change icon color to gradient css 
Css :: css rotate 3d 
Css :: how to center a inline block element 
Css :: position absolute align center 
Css :: mini-css-extract-plugin 
Css :: css how to make a pre tag to break line 
Css :: no hover effect css 
Css :: css border color 
Css :: css table cell vertical align 
Css :: html how to indent text 
Css :: css dashed double border 
Css :: nth last of type 
Css :: background image blur css codepen 
Css :: how to horizontal center a div in css 
Css :: z index div over cursor 
Css :: how to give text stroke in css 
Css :: scroll bar with 0 width 
Css :: grid-template-areas css 
Css :: input padding without changing width 
Css :: select even child css 
Css :: background image with color overlay gradient css 
Css :: css how to change font colr 
Css :: center div in div without flex with position absolute 
Css :: put gradient color over background image 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =