1. How to display two block elements horizontally?
Interview Answers
Anonymous
2 Mar 2013
Set css style for second DIV as "inline-block".
1
Anonymous
22 Mar 2018
Set parent div display value to flex that's all you need to do
Anonymous
14 Apr 2012
Use CSS to make the block display float left. Clear the float after. Try this:
#left, #right
{
text-align: center;
width:11%;
height: 640px;
border: solid;
float: left;
}
in the body
<div>left</div>
<div>right</div>