CSS — Background & Border

Kelly Obrazcova
Jul 21, 2017 · 1 min read

body/div/p selectors

background image

body {background: url(ENTER URL);}

tiles automatically, unless background repeat used

body {background: url(ENTER URL); background-repeat: no-repeat;}

to stretch image

body {background: url(ENTER URL); background-size: cover;}

border has three parts - width (in pixels “px”), style, color,

border: 5px, solid, purple;

)