LizzyB
11-04-2007, 10:07 AM
Hi,
I have a two column site with a header and footer.
The 2 columns are floated and I want the left to be a fixed size as it will have a flash module in it. the right column I want to be fluid and resize to fit the page.
The problem is that when resizing in Firefox the right column drops under the left.
I have tried setting a min and max width on both the containing box of the 2 columns and also on the right column. Its working fine in IE7.
Any ideas please?
Thanks
Liz
HTML
<div id="nav">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="index.php">Home</a></li>
<li><a href="index.php">Home</a></li>
<li><a href="index.php">Home</a></li>
</ul>
</div><!--nav-->
<div id="content">
<div id="flash">This box will hold the flash
</div> <!--flash-->
<div id="main">
<p>Magic is the perfect icebreaker, and is enjoyed by people of all ages. David's act will give your guests a truly unique experience, ensuring your event will stand out and be talked about for a long time after.</p>
<p>Watch as coins burst into flames, cards float in the air, bank notes magically print, and minds are read under impossible conditions.</p>
<p>For any information with regards to a potential booking, please don't hesitate to get in touch.</p>
</div> <!--main-->
</div><!--content-->
<div id="footer">
</div><!--footer-->
CSS
/*layout*/
html, body{
margin:0px;
padding:0px;
}
#nav{
background-color:#EBEBEB;
height:80px;
min-width:850px;
}
#nav ul{
margin: 0px 0px 0px 80px; /*cant just set margin left property as it adds in other margins*/
padding-top: 50px;
list-style: none;
}
#nav ul li {
display: inline;
}
#nav a {
float: left;
color:#595959;
padding:0px 40px;
border-right: 1px solid #595959;
letter-spacing:1px;
text-decoration:none
}
#nav a:hover {
text-decoration:underline;
}
#content{
height:300px;
min-width:800px;
max-width:1000px;
padding:10px 25px;
}
#main{
float:left;
min-width:450px;
max-width:650px;
padding:10px;
border:1px solid #ebebeb;
}
#flash{
float:left;
width: 300px;
height:300px;
margin-left:25px;
border:1px solid #000000;
}
#footer{
background-color:#EBEBEB;
height:80px;
min-width:850px;
}
/* TEXTS */
body, th, td, input, textarea, select {
font-family: Arial, Helvetica, sans-serif;
font-size: 0.8em;
color: #595959;
}
p, blockquote, ul, ol, dl {
margin-top: 0px;
text-align: justify;
}
/** LINKS */
a {
color: #000000;
}
a:hover {
text-decoration: none;
}
or view the page here:
http://www.whizzliz.co.uk/DavidAbel/index.php
I have a two column site with a header and footer.
The 2 columns are floated and I want the left to be a fixed size as it will have a flash module in it. the right column I want to be fluid and resize to fit the page.
The problem is that when resizing in Firefox the right column drops under the left.
I have tried setting a min and max width on both the containing box of the 2 columns and also on the right column. Its working fine in IE7.
Any ideas please?
Thanks
Liz
HTML
<div id="nav">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="index.php">Home</a></li>
<li><a href="index.php">Home</a></li>
<li><a href="index.php">Home</a></li>
</ul>
</div><!--nav-->
<div id="content">
<div id="flash">This box will hold the flash
</div> <!--flash-->
<div id="main">
<p>Magic is the perfect icebreaker, and is enjoyed by people of all ages. David's act will give your guests a truly unique experience, ensuring your event will stand out and be talked about for a long time after.</p>
<p>Watch as coins burst into flames, cards float in the air, bank notes magically print, and minds are read under impossible conditions.</p>
<p>For any information with regards to a potential booking, please don't hesitate to get in touch.</p>
</div> <!--main-->
</div><!--content-->
<div id="footer">
</div><!--footer-->
CSS
/*layout*/
html, body{
margin:0px;
padding:0px;
}
#nav{
background-color:#EBEBEB;
height:80px;
min-width:850px;
}
#nav ul{
margin: 0px 0px 0px 80px; /*cant just set margin left property as it adds in other margins*/
padding-top: 50px;
list-style: none;
}
#nav ul li {
display: inline;
}
#nav a {
float: left;
color:#595959;
padding:0px 40px;
border-right: 1px solid #595959;
letter-spacing:1px;
text-decoration:none
}
#nav a:hover {
text-decoration:underline;
}
#content{
height:300px;
min-width:800px;
max-width:1000px;
padding:10px 25px;
}
#main{
float:left;
min-width:450px;
max-width:650px;
padding:10px;
border:1px solid #ebebeb;
}
#flash{
float:left;
width: 300px;
height:300px;
margin-left:25px;
border:1px solid #000000;
}
#footer{
background-color:#EBEBEB;
height:80px;
min-width:850px;
}
/* TEXTS */
body, th, td, input, textarea, select {
font-family: Arial, Helvetica, sans-serif;
font-size: 0.8em;
color: #595959;
}
p, blockquote, ul, ol, dl {
margin-top: 0px;
text-align: justify;
}
/** LINKS */
a {
color: #000000;
}
a:hover {
text-decoration: none;
}
or view the page here:
http://www.whizzliz.co.uk/DavidAbel/index.php