Search
 
SCRIPT & CODE EXAMPLE
 

CSS

background image

div {
  background-color: #ffffff;
  background-image: url("img_tree.png");
  background-repeat: no-repeat;
  background-attachment: scroll|fixed|local|initial|inherit;
  background-position: right top  |  x% y%  |  xpos ypos;
  background-clip: border-box|padding-box|content-box|initial|inherit;
  background-size: auto|length|cover|contain|initial|inherit;
}
//shorthand:
div {
  background: #ffffff url("img_tree.png") no-repeat right top;
}
Comment

set background as an image

div {
  background: #ffffff url("image.png") no-repeat right top;
}
Comment

background-image

body{
  background-image:url(image.jpeg);
}
Comment

background-image

background-image: url('path_to_background_image');
Comment

PREVIOUS NEXT
Code Example
Css :: wordpress theme my login redirect after login 
Css :: css img src 
Css :: no break line html 
Css :: css max width media 
Css :: remove box around button when clicked 
Css :: importing scss into vue component 
Css :: css chevron arrow 
Css :: RROR: PKGBUILD contains CRLF characters and cannot be sourced. 
Css :: css outline width 
Css :: linear gradient and url css 
Css :: h2 in px css 
Css :: center things with css 
Css :: css image background 
Css :: html css tilt text 
Css :: removing space between words css 
Css :: input default css properties 
Css :: css all uppercase to capitalize 
Css :: css disable input 
Css :: watch scss 
Css :: import global variables scss angular 
Css :: container transparent text opaque 
Css :: css how to hyperlink 
Css :: css font-variant 
Css :: conic gradient in css 
Css :: add background image in css 
Css :: CSS Text Shadow Effect( cool) 
Css :: Cambiar el color de texto al hacer scroll css 
Css :: css affect all child elements 
Css :: remove horizontal scroll in small devices css 
Css :: grid-template-columns 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =