Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css background image position vertical center

/* Vertically center: */
.block {
    background: url("image.jpg") no-repeat left center;
}

/* Horizontaly center: */
.block {
    background: url("image.jpg") no-repeat center top;
}
 
PREVIOUS NEXT
Tagged: #css #background #image #position #vertical #center
ADD COMMENT
Topic
Name
1+9 =