Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

center align an image css

<img src="myImg.png" class="center">

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}
 
PREVIOUS NEXT
Tagged: #center #align #image #css
ADD COMMENT
Topic
Name
5+7 =