Next Jump

  www.nextjump.com
  www.nextjump.com

Interview Question

Web Development Intern Interview New York, NY

1. How to display two block elements horizontally?

Answer

Interview Answer

2 Answers

0

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 id="left">left</div>
  <div id="right">right</div>

CheckThisResume.com on Apr 14, 2012
0

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.