Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css get the image to the center and to make it relative to the width of the parent.

#image {
    display: block;
      
    max-width: 100%;
    
    margin-left: auto;
    
    margin-right: auto;
    
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #image #center #relative #width
ADD COMMENT
Topic
Name
8+2 =