Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

background-position

/* Keyword values */
background-position: top;
background-position: bottom;
background-position: left;
background-position: right;
background-position: center;

/* % length values where 0 is top left */
background-position: 20% 70%;

/* absolute length values */
background-position: 0 0;
background-position: 1rem 2em;
background-position: 10vh 8rem;

/* Multiple images */
background-position: 0 0, center;

/* Edge offsets values */
background-position: bottom 10px right 20px;
background-position: right 3em bottom 10px;
background-position: bottom 10px right;
background-position: top right 10px;
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
2+4 =