Two Divs on same line

Giganews Newsgroups
Subject: Two Divs on same line
Posted by:  rcw1983 (rwieg…@gmail.com)
Date: Wed, 7 May 2008

I'm trying to get two divs on the same line....the problem I have is
when the browser window gets smaller, the second div is being pushed
below the first div....I want them to stay on the same line.  Here is
my code:

<div style="white-space:nowrap">
<div style="float:left">
Left Column
</div>
<div style="float:left;margin-left:10px">
Right Column
</div>
</div>

Replies