body {
background-color: green;
}
/* Use the following code: */
html {background-color: #fefefe;}
/* You can change the hexedecimal code to RGB, RGBA, name & more colors!*/
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;
}
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 :: html incliude all css from folder |
Css :: scss to css |
Css :: offsetx and offsety in css |
Css :: highchart font family |
Css :: tailwind simple product card |
Css :: css hover animation text |
Css :: devextreme css |
Css :: How to add a pure css loading spinner |
Css :: blue gradient |
Css :: scale to smaller of vh and vw |
Css :: how to style links in css |
Css :: overflow |
Css :: text overlay animation css |
Css :: add css class c# |
Css :: ui gradient |
Css :: button in css |
Css :: rotating text animation |
Css :: keep button active after click |
Css :: css variables not working |
Css :: blurred background |
Css :: why is my body background color in css not working |
Css :: css elementos |
Css :: css calc margin-top based on height? |
Css :: enque script only on specific archive page |
Css :: convert css in scss |
Css :: Creating Nike logo with CSS |
Css :: how to use formailze me ? |
Css :: fix materialize form label not working |
Css :: gh: stop using --force !!! |
Css :: changing the dots of the ul to ticks |