Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how to css with data arrtibute

a[href="https://css-tricks.com"] {
  color: #E18728;
}

[data-value] {
  /* Attribute exists */
}

[data-value="foo"] {
  /* Attribute has this exact value */
}
[data-value*="foo"] {
  /* Attribute value contains this value somewhere in it */
}

[data-value~="foo"] {
  /* Attribute has this value in a space-separated list somewhere */
}

[data-value^="foo"] {
  /* Attribute value starts with this */
}

[data-value|="foo"] {
  /* Attribute value starts with this in a dash-separated list */
}

[data-value$="foo"] {
  /* Attribute value ends with this */
}
Comment

PREVIOUS NEXT
Code Example
Css :: select item in populate mongoose 
Css :: text glow effect 
Css :: bootstrap scrollable modal 
Css :: mat slider custom color 
Css :: css center vertically 
Css :: sass loop columns 
Css :: how to set height equal to dynamic width pure css 
Css :: css grid reverse column order 
Css :: bot page description background selector top.gg 
Css :: Add dark filter to an image - CSS 
Css :: cmd hash file 
Css :: nth-child() css 
Css :: make an image smaller css 
Css :: screen orientation css 
Css :: how to add a class to a paragraph in css 
Css :: css cut text of 
Css :: css font face 
Css :: css good black color 
Css :: html disable spin buttons on input type number 
Css :: checkbox border css 
Css :: postcss-preset-env: end value has mixed support, consider using flex-end instead 
Css :: css grid auto wrap 
Css :: can we use material ui and tailwind css together 
Css :: media query for mobile landscape only 
Css :: photshop flip layer 
Css :: css dashed double border 
Css :: input type date all css style 
Css :: test shadow css 
Css :: css n number of lines only 
Css :: css animate border bottom on hover 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =