These changes should fix the IE problem and produce a page with less interaction between elements.
On training_programme1.html, add a new div#banner around line 20-21.
Code:
<div id="main-container">
<div id="banner">
<p class="banner-band">Bristol Association for<br />Neighbourhood Daycare</p>
</div>
<div id="main-content">
Move the </div> from before <div class="navigation"> (line ~298) to just above the </body> tag at the bottom of the page.
On training_programme1.css
Code:
h1, .banner-band {
color:#08844A;
font-weight:bold;
font-size:200%;
line-height:30px;
font-family:"times new roman", serif;
padding-top:5px; /* added */
margin:0px; /* changed. position with padding instead. (negative margins (esp. vertical) often used to compensate for problems elsewhere; in turn cause more problems.) */
}
#main-container {
/* background-color:#fff; /* background-color for entire page */
width:904px; /* height was removed */
color: inherit;
font-size:105%;
overflow:hidden; /* added */
margin:0 auto;
}
#banner { /* this is a new div */
border-style:groove;
border-color:#08844A;
border-width:2px;
background-image:url(images/test.jpg);
background-repeat:no-repeat;
width:900px; /* allows 4px for border */
height:156px;
}
#main-content {
background-color:#fff; /* background-color for main-content only */
float:left;
width:704px; /* main-content + padding + navigation widths cannot exceed 904px */
padding:10px;
margin:0px; /* changed. (negative margin-left not a good idea. change padding-left instead) */
}
.navigation {
background-color:#fff; /* background-color for navigation only */
float:left; /* consider float:right */
width:179px;
}
Comments:
(1) You may want to tweak the text spacing in a place or two. Suggest that you avoid using negative vertical margins when more appropriate methods are available.
(2) There should really be only 1 <h1> tag on a page.
(3) Why not change <p class="banner-band"> to <h1> ? Google will be happier. Then change both current <h1> tags to <h2>, the <h2>s to <h3>, etc.
(4) Avoid using <p> tags to provide margins over and under images, such as the Band box. Margin the boxes directly instead.
Bookmarks