Friday, February 15, 2019

Make Two DIV Inline In ONe Row

Write this HTML:
<div class="container">
  <div class="container-left">
    Your left items
  </div>
 <div class="container-right">
    Your right items
  </div>
  <div class="clear"></div>
</div>
Use This CSS:
.container-left {
  float: left;
}

.container-right {
  float: right;
  margin-left: 10px;
}

.container {
  width: 100%;
}

No comments:

Post a Comment

How to Hide Elements on Specific WordPress Pages

Find the post or page id. something like: .postid-1762 or .pageid-1762. Then add to your css : .postid-1762 #your-element { display :...