ascend
12-03-2005, 03:29 AM
I'm redesigning my website and I've got a pretty simple problem that I just can't seem to locate a solution for. I've made a layout enclosed in a 720px bow with rounded corners. For the head and the foot, I've made divs that are 720px x 10px that have a background image of the rounded corners. Here is the code for thos divs:
#main-cap-head, #main-cap-foot {
display: inline;
width: 720px;
height: 10px;
background-repeat: no-repeat;
margin: 0;
padding: 0;
}
#main-cap-head {
background-image: url(../img/main_cap_head.gif);
}
#main-cap-foot {
background-image: url(../img/main_cap_foot.gif);
}
then, under that, is a 'main-content' div, here's the code for that:
#main-content {
width: auto;
height: auto;
padding: 0px;
margin: 0;
background-color: #606060;
}
and here's the HTML markup:
<body>
<div id="container">
<div id="main-cap-head"></div>
<div id="main-content">
<div id="header">
<div id="head-img"><img src="_lib/img/main_head_name.gif" width="189" height="41" alt="Chris Forrette | Graphic Designer"></div>
<div id="navigation">
<ul>
<?=$navigation ?>
</ul>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
etc...
Everything displays fine, except in IE on a PC, there is a gap between the 'main-cap-head' div and the 'main-content div'. I've tried searching around for solutions, switching between 'inline' and 'block' displays for each element including the img tag. Does anyone know how to fix this? I'm attaching an image of how it should look and the page is up on my server at:
http://www.ascendvisual.com/_v3/main.php
Thanks!
#main-cap-head, #main-cap-foot {
display: inline;
width: 720px;
height: 10px;
background-repeat: no-repeat;
margin: 0;
padding: 0;
}
#main-cap-head {
background-image: url(../img/main_cap_head.gif);
}
#main-cap-foot {
background-image: url(../img/main_cap_foot.gif);
}
then, under that, is a 'main-content' div, here's the code for that:
#main-content {
width: auto;
height: auto;
padding: 0px;
margin: 0;
background-color: #606060;
}
and here's the HTML markup:
<body>
<div id="container">
<div id="main-cap-head"></div>
<div id="main-content">
<div id="header">
<div id="head-img"><img src="_lib/img/main_head_name.gif" width="189" height="41" alt="Chris Forrette | Graphic Designer"></div>
<div id="navigation">
<ul>
<?=$navigation ?>
</ul>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
etc...
Everything displays fine, except in IE on a PC, there is a gap between the 'main-cap-head' div and the 'main-content div'. I've tried searching around for solutions, switching between 'inline' and 'block' displays for each element including the img tag. Does anyone know how to fix this? I'm attaching an image of how it should look and the page is up on my server at:
http://www.ascendvisual.com/_v3/main.php
Thanks!