Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css content from data attribute


div { 
	content: attr(id); /* Get content from the ID */
	content: attr(class); /* Get content from the class attribute */
  	content: attr(data-custom); /* Get content from a custom attribute, e.g. <div data-custom="My Content">*/
}
Comment

PREVIOUS NEXT
Code Example
Css :: how to make auto scroll to the end in css 
Css :: css cut text of 
Css :: circle button html 
Css :: How to make a round corner in CSS 
Css :: text area focus css 
Css :: padding shorthand 
Css :: convert string to uppercase while typing 
Css :: css good black color 
Css :: select all class in css 
Css :: Placeholder font-family 
Css :: centos 8 cron on reboot 
Css :: loops scss 
Css :: css bg code 
Css :: how to center a inline block element 
Css :: circle button css 
Css :: css transition delay after hover 
Css :: background size in css 
Css :: add white background to svg 
Css :: @keyframes 
Css :: scrollbar height css 
Css :: sass class with another class 
Css :: css everything under element 
Css :: css make input unselectable 
Css :: close icon css 
Css :: webpack/load/css 
Css :: box shadow css property 
Css :: plasma state of matter 
Css :: css using the same background-color as the parent background 
Css :: css set background opacity 
Css :: css layers over background-images 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =