body {
background-color: green;
}
body {
background-color: red;
}
html,body {
background-color: red;
}
body {
background-color: red;
}
/* Keyword values */
background-color: gainsboro;
background-color: lightcoral;
/* Hexadecimal value */
background-color: #0000ff; /* blue opaque */
background-color: #00f; /* blue opaque shorthand */
background-color: #0000ff00; /* blue transparent */
background-color: #00f0; /* blue transparent shorthand */
background-color: #0000ffff; /* blue opaque */
background-color: #00ff; /* Fully opaque shorthand */
/* RGB value */
background-color: rgb(0, 0, 255); /* blue opaque */
background-color: rgba(0, 0, 255, 0.5); /* 50% transparent */
/* HSL value */
background-color: hsl(67, 100%, 50%); /* yellow opaque */
background-color: hsla(67, 100%, 50%, 0.75); /* 75% transparent */
/* Special keyword values */
background-color: currentcolor;
background-color: transparent;
/* Global values */
background-color: inherit;
background-color: initial;
background-color: unset;
body{
background: lightblue;
}
/* To apply color to background you have to use 'background-color' property and value of property is color name. */
html,body {
background-color: blue;
}
div {
background-color: #b2b2b2;
}
background-color: blue;
<style>
body {
background-color: coral;
}
</style>
html {background-color: #ededed;} /*Changes the background colour to a light grey*/
body {background-color: coral;}
background-color: green;
.class,#id,div {
background-color: green;
}
body {
background-color: black;
}
Code Example |
---|
Css :: resize in css |
Css :: RROR: PKGBUILD contains CRLF characters and cannot be sourced. |
Css :: css tbody full width |
Css :: css for disabled button |
Css :: mix color using css |
Css :: linear gradient and url css |
Css :: iconscout css |
Css :: how to use image zoom effect in css |
Css :: css input border radius focus |
Css :: css button click color |
Css :: multiple radial gradient css |
Css :: how to change background color in css |
Css :: tailwind css installation |
Css :: select third element of an id css |
Css :: css a link style |
Css :: css disable input |
Css :: *+* css |
Css :: css table size |
Css :: css image hover |
Css :: css absolute position inside div |
Css :: box glow css |
Css :: taille texte css |
Css :: btn glow on hover |
Css :: css calc vw minus px |
Css :: display flex css compatibility |
Css :: width 33 css |
Css :: crystal background css |
Css :: move scrollbar on element to right side |
Css :: materialize css |
Css :: responsive gradient background css |