Next Jump Interview Question: 1. How to display two block ... | Glassdoor

Interview Question

Web Development Intern Interview New York, NY

1. How to display two block elements horizontally?


Interview Answer

2 Answers


Use CSS to make the block display float left. Clear the float after. Try this:

#left, #right
text-align: center;
height: 640px;
border: solid;
float: left;
in the body
  <div>right</div> on Apr 14, 2012

Set css style for second DIV as "inline-block".

404ed on Mar 2, 2013

Add Answers or Comments

To comment on this, Sign In or Sign Up.