Search
 
SCRIPT & CODE EXAMPLE
 

CSS

CSS Global variables

:root {
	--global--color-primary: #28303d;
}

a {
	color: var(--global--color-primary);
}

.social-icons a {
	background: var(--global--color-primary);
}
Comment

add css variables without global

div {
  --color: #fff;
}

div .child {
  color: var(--color);
}
Comment

PREVIOUS NEXT
Code Example
Css :: ckeditor push text in front of cursor 
Css :: @font-face 
Css :: padding top bottom 
Css :: rotate icon 
Css :: spinner in html css react 
Css :: color gradient for text 
Css :: angular css path to assets 
Css :: .col-12 bootstrap 
Css :: increase space between dashed border css 
Css :: css button style rectangle 
Css :: make border absolute css 
Css :: css font color 
Css :: css line height 
Css :: how to style navbar-toggler-icon bootstrap 5 
Css :: for loop for increment id of div in jquery 
Css :: display flex align last item to left 
Css :: firefox-scroll-css 
Css :: remove black shadow from border css 
Css :: body{text-align: center;} 
Css :: Simple example of using bootstrap 
Css :: what is css 
Css :: JavaScript find common characters between the strings 
Css :: prevent flex box width from overflowing in css 
Css :: css box shadow transform rotate 
Css :: animation using css 
Css :: form css design 
Css :: buttons have strange style iOS 
Css :: css good line height 
Css :: highchart change font 
Css :: restrict css to apply on div 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =