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

PREVIOUS NEXT
Code Example
Css :: css hide select label 
Css :: css font leading 
Css :: how do img with same 
Css :: webpack validationerror: invalid options object. mini css extract plugin loader has been initialized using an options object that does not match the api schema. 
Css :: css hover animation text 
Css :: Using a Python dict for a SQL INSERT statement 
Css :: css() multiple 
Css :: css how to stop screen from left and right 
Css :: make element fit in vh and vw 
Css :: images end then start text in css 
Css :: black background 
Css :: css not selector 
Css :: how to make grid css 
Css :: css cursor pointer 
Css :: css fonts 
Css :: beautiful checkbox css 
Css :: repeat css 
Css :: fallback value in css 
Css :: set another font in css 
Css :: css after before 
Css :: page html css template 
Css :: select custom css 
Css :: How to enable horizontal scrolling of content in a webpage 
Css :: media query not working with rem 
Css :: css conflicting styles 
Css :: grippy css 
Css :: codebuddysurej 
Css :: moving nested element up css 
Css :: fixed banner 
Css :: css infinite horizontal scroll with keyframe? 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =