Search
 
SCRIPT & CODE EXAMPLE
 

CSS

add alpha value to css color variable

:root {
  /* #f0f0f0 in decimal RGB */
  --color: 240, 240, 240;
}

body {
  color: #000;
  background-color: #000;
}

#element {
  background-color: rgba(var(--color), 0.8);
}
Comment

PREVIOUS NEXT
Code Example
Css :: css height of screen 
Css :: link to css file within another css file 
Css :: image color css 
Css :: remove marker from li tag 
Css :: vertical-align tablerow 
Css :: repeat with auto-fit 
Css :: css full cover background image 
Css :: table td remove padding 
Css :: css animation animated element goes back to previous state 
Css :: align items in span to center 
Css :: cursor pointer events none 
Css :: css table borders 
Css :: how to center image css 
Css :: duplicate box-shadow on element inner and outer 
Css :: 3 column responsive grid css 
Css :: change background input css 
Css :: backdrop filter property for safari not working 
Css :: breakpoint bootstrap 
Css :: change color to white svg with filter 
Css :: onclick change visibility 
Css :: android studio cardview background transparent 
Css :: sass each index 
Css :: how to rotate picture to the right in css 
Css :: div centre 
Css :: counter-reset ol css 
Css :: css width: 50% 
Css :: underline css still there after text-decoration: none 
Css :: styles only for IE 
Css :: css selector not contain 
Css :: flex align top css 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =