Forum Moderators: not2easy
I have a DIV question.
I have set up a layout using floated DIVs and it looks and works great.
I have three DIVs sitting in a container DIV (homeWrapper). The first DIV is a navigation column that has links and images (leftColumn). It is floated left and is the full height of the container DIV.
The second DIV (topFlash) acts as a row and slides to the top right of leftColumn. This DIV also expands as far to the right as the browser is wide, filling the screen with its repeating background. Thus, I don’t want it to have a fixed width.
The same goes with the third DIV (bottomFlash). It sits below topFlash but still to the right of leftColumn.
Everything is working great, unless I resize my browser to 800 x 600. When I do that topFlash and bottomFlash shift (jump) below leftColumn. I want them to stay where they are and allow a horizontal browser scroll bar.
I also need there not to be a fixed width on my DIVs so they will fill the page to the right on larger screen resolutions.
Here is a very abbreviated look at my code.
<style type="text/css">
#homeWrapper {
margin: 0;
height:515px;
background:#f8e600;
}#leftColumn {
margin: 0px;
width:180px;
height:515px;
background:#f8e600;
float:left;
}#topFlash {
margin:0;
height: 300px;
background:#f8e600 url(images/homerotate/mainFeatureTile1.jpg);}
#bottomFlash {
margin:0;
height:215px;
background:#f8e600;
}.homepgRed {
color: #CC3333;
font-weight: bold;
}.hand {
cursor: pointer;
}.homepgLinkBor {
border-bottom: 1px #000000 dotted;
}</style>
<div id="homeWrapper"><div id="leftColumn">[Images and Links]</div>
<div id="topFlash">[Flash content]</div><div id="bottomFlash">[Flash content]</div>
</div>
Does any one have any ideas? Thanks in advance!