On Mar 22, 12:37 pm, "Andy Dingley" <ding... (AT) codesmiths (DOT) com> wrote:
Quote:
On 22 Mar, 16:20, "Alex" <sama... (AT) gmail (DOT) com> wrote:
If I were to create the following DIV's, how do I make them show-up
side by side?
float
Read <http://brainjar.com/css/positioning/> first
Back off on the pixel-based size units too. You're supposed to be
aiming at a fluid design here, otherwise why change? |
Hi Andy,
That is a great article, and though I'm still reading through it (it's
long), I think it will help me in learning more 'tricks' with CSS.
As for my problem at hand, I've been working with Float and have ran
across my first browser issues as I have it working in Firefox but not
IE7. In IE7 it appears it's wrapping. Here's my code:
CSS File:
Div#Main{ position: relative; top: 0px; width: 740px; height: 38px;
background-color: #000000;}
Div#Section1{ position: relative; float: left; width: 140px; height:
38px; background-color: #000000;}
Div#Section2{ position: relative; float: left; width: 116px; height:
38px;}
Div#Section3{ position: relative; float: left; width: 78px; height:
38px;}
Div#Section4{ position: relative; float: left; width: 406px; height:
38px;}
HTML File:
<div id="search">
<div id="SearchIcon">
<IMG height=38 width="140" alt=search src="search1.gif">
</div>
<div id="SearchField">
<INPUT class="SearchBox" size="18" name="searchtext">
</div>
<div id="SearchGo">
<INPUT type="image" alt="go button" src="search_go.gif">
</div>
<div id="TopBanner">
<IMG height=38 width=406 src="home_nursery.jpg" border=0>
</div>
</div>
Now I'm picking it apart to see what I can do to have it look as it
should in IE as well. Any suggestions from the group?
Thanks --
Alex