Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to scale a bg image acc to size of div

/* One way */
background-size: cover;

/* Other option */
background-size: contain;
 
PREVIOUS NEXT
Tagged: #scale #bg #image #acc #size #div
ADD COMMENT
Topic
Name
1+7 =