Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css background color

body {
  background-color: green;
}
Comment

background color css

html,body {
  background-color: red;
}
Comment

css set background color

body {
	background-color: red; 
}
Comment

CSS Background Color

/* 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;
Comment

background color using css

/* To apply color to background you have to use 'background-color' property and value of property is color name. */
html,body {
  background-color: blue;
}
Comment

backgroud color css

 background-color: blue;
Comment

css background color

html {background-color: #ededed;} /*Changes the background colour to a light grey*/
Comment

css background color

body {background-color: coral;}
Comment

css background color

.class,#id,div {
  background-color: green;
}
Comment

background color css

body {
  background-color: black;
}
Comment

PREVIOUS NEXT
Code Example
Css :: how to change style based on screen size 
Css :: text color as gradient css 
Css :: css overflow y 3 dots 
Css :: remove bootstrap button outline 
Css :: css make text not highlightable 
Css :: christmas red color code 
Css :: html align text anchor 
Css :: bootstrap text truncate 
Css :: css grid wrap columns 
Css :: css blink 
Css :: css check if mobile 
Css :: css border top 
Css :: how to make a division center css 
Css :: ipad specific media query 
Css :: css safari remove scrollbar 
Css :: verticle line css 
Css :: trasition opacity 
Css :: how to specify css for smaller screen 
Css :: import font sass 
Css :: How to remove the blueish background on a button when clicked 
Css :: rgba white color 
Css :: img position css 
Css :: remove background when autofill input css 
Css :: import image css 
Css :: color code for dark green 
Css :: how to remove underline from list item in html 
Css :: line under text css 
Css :: Push an existing folder to git 
Css :: apply style to second child div 
Css :: css width: 50% 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =