Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

display div in the same line css

<div class='parent'>
  <div class='child'>child 1</div>
  <div class='child'>child 2</div>
</div>

.parent {
  text-align: center;
}
.child {
  display: inline-block;
  vertical-align: middle;
}
 
PREVIOUS NEXT
Tagged: #display #div #line #css
ADD COMMENT
Topic
Name
3+6 =