CSS Inline Block

CSS Inline Block – Instead of float you can use inline-block element. Inline-block element is display property element.
Syntax:
.box {
 display: inline-block;
 width: 300px;
 height: 200px;
 margin:10px;
 border: 2px solid #ff4504;
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *