2 replies [Last post]
big_pete
big_pete's picture
Offline
Regular
Australia
Last seen: 13 years 13 weeks ago
Australia
Timezone: GMT+11
Joined: 2005-08-07
Posts: 49
Points: 0

hey,
well im having a strange problem with a site im creating, the divs dont seem to be working properly (or something) kinda hard to explain, so here is the site.

http://www.jammedia.com.au/SVW/businessdirectory.html

ive shown the problem with a border around one of the divs, and if you look at the code it seems as though the div style is applying it to the h3 of another div aswell instead of just the single div. and not styling the h3 of the div i want it to.
(that probably made no sense, but right now im kinda confused myself!)
basically i want the border for 'information centres' to go above the h3 of 'information centre's' and not 'accomodation'

what is happening????? is this CSS related or is it something in the HTML??

again, im sure its the most simplest of problems, but i just cant see it!

any help is much appreciated

heres the HTML code (rather large) probably just easier to go to page instead


Snowy Valleys Way - Business Directory

Welcome....To the Snowy Valleys Way

Text Sizes Small Text Size Medium Text Size Large Text Size

Welcome to the Snowy Valleys Way - the Alternate Touring Route to the Hume Highway

Page content will go here Vestibulum tincidunt facilisis tellus. Nullam pellentesque, augue sit amet adipiscing blandit, pede diam consequat odio, quis dapibus nunc velit in nisi. Maecenas vitae dolor ac nibh fermentum lobortis. Donec imperdiet magna vel leo. Etiam tincidunt tempus orci. Morbi purus est, mattis a, tincidunt sit amet, mattis in, lorem. Pellentesque est. Proin vel urna. Nam venenatis, ipsum non dictum lacinia, erat leo euismod dui, et aliquet sem lacus sit amet enim. Aliquam orci. Nullam ut nisi. Nulla facilisi. Quisque gravida est eu erat. Maecenas nonummy, nibh vitae rhoncus link, neque magna euismod ligula, quis vehicula ligula arcu in odio.

  • Information Centre's
  • Accomodation
  • Pub Culture
  • Information Centre's
  • Information Centre's
  • Information Centre's

Information Centre's

business 1

Will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

business 2

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

business 3

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

business 4

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

business 5

will go here for all to see, look at their content it goes egestas placerat, gravida eu, pharetra at, nulla. Ut nunc dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

business 6

Will go here for all to see, look at their content it goes egestas placerat, gravida eu, pharetra at, nulla. Ut nunc dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

business 7

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

business 8

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

business 9

will go here for all to see, look at their content it goes egestas placerat, gravida eu, pharetra at, nulla. Ut nunc dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

business 10

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

Accomodation

accomodation 1

Will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

accomodation 2

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

accomodation 3

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

accomodation 4

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

accomodation 5

will go here for all to see, look at their content it goes egestas placerat, gravida eu, pharetra at, nulla. Ut nunc dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

accomodation 6

Will go here for all to see, look at their content it goes egestas placerat, gravida eu, pharetra at, nulla. Ut nunc dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

accomodation 7

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

accomodation 8

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

accomodation 9

will go here for all to see, look at their content it goes egestas placerat, gravida eu, pharetra at, nulla. Ut nunc dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

accomodation 10

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

Pub Culture

pub 1

Will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

pub 2

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

pub 3

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

pub 4

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

pub 5

will go here for all to see, look at their content it goes egestas placerat, gravida eu, pharetra at, nulla. Ut nunc dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

pub 6

Will go here for all to see, look at their content it goes egestas placerat, gravida eu, pharetra at, nulla. Ut nunc dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

pub 7

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

pub 8

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

pub 9

will go here for all to see, look at their content it goes egestas placerat, gravida eu, pharetra at, nulla. Ut nunc dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page

pub 10

will go here for all to see, look at their content it goes here. Curabitur id neque nec lectus luctus malesuada. Donec dui, iaculis vel, accumsan interdum, scelerisque ac, diam. link to page






heres the CSS code (rather large)

body { background-image: url(../images/SVW_initial_layout_repeater.gif); background-repeat: repeat; text-align: center; margin: 0px; padding: 0px; z-index: 1; }

/* -----------------Text Sizes to change--------------------- */

#wrapper {
background-color: #FFFFFF;
width: 720px;
margin: 0 auto;
z-index: 100;
font-family: Arial, Helvetica, sans-serif;
color: #666666;
font-size: 10pt;
text-align: left;
line-height: 15pt;
}
#content h3 {
font-size: 11pt;
}
#silver h4 {
font-size: 10pt;
color: #666666;
margin-top: 10px;
margin-bottom: 0px;
}
#operator h4 {
font-size: 10pt;
color: #666666;
margin-top: 10px;
margin-bottom: 0px;
}
#doublecolumn h4 {
font-size: 10pt;
color: #666666;
margin-top: 10px;
margin-bottom: 0px;
}
.listtext h4{
font-size: 9pt;
color: #333333;
margin-top: 10px;
margin-bottom: 0px;
}
.listtext2 h4{
font-size: 9pt;
color: #333333;
margin-top: 10px;
margin-bottom: 0px;
}

/* -----------------Link styles--------------------- */

#content a:link, #content a:visited {
font-weight: bold;
color: #666666;
text-decoration: none;
}
#content a:hover {
text-decoration: underline;

}
#footlist a:link, #footlist a:visited {
color: #999999;
text-decoration: none;

}
#footlist a:hover {
color: #7d903f;
text-decoration: underline;

}
#operators a:visited, #operators a:link {
color: #666666;
text-decoration: none;
font-weight: bold;
}
#operator a:link, #operator a:visited {
color: #7d903f;
text-decoration: none;
font-weight: bold;
}
#operator a:hover {
text-decoration: underline;

}
#silver a:link, #silver a:visited {
color: #7d903f;
text-decoration: none;
font-weight: bold;
}
#silver a:hover {
text-decoration: underline;
}
#list a:link, #list a:visited {
color: #7d903f;
text-decoration: none;
font-weight: bold;
}
#list a:hover {
text-decoration: underline;
}

/* -----------------Layout Styles--------------------- */

#testimonials {
background-image: url(../images/SVW_intial_testimonials.gif);
float: right;
height: 300px;
width: 257px;
text-indent: -10000pt;
}
#topsidecontent {
float: right;
width: 257px;
margin-top: 0px;
}
#header {
background-image: url(../images/banners/banner_flora.jpg);
height: 225px;
margin: 0px;
padding: 0px;
text-indent: -10000pt;
}
#navbar2 {
background-image: url(../images/SVW_intial_navbar2.gif);
height: 38px;
text-indent: -1000pt;
overflow: hidden;
}
#map {
background-image: url(../images/SVW_intial_map.jpg);
height: 500px;
text-align: center;
}
#contentmain {
width: 720px;
margin-top: 5px;
margin-bottom: 0px;
}
#title {
background-image: url(../images/titles/titles_flora.gif);
height: 70px;
width: 444px;
float: left;
text-indent: -1000pt;
}
#content {
float: left;
width: 444px;
}
#accomcontent {
width: 444px;
}
#footer {
background-image: url(../images/footers/SVW_footer_lrg.gif);
height: 100px;
text-align: center;
width: 739px;
margin: 0 auto;
clear: both;
overflow: hidden;
font-size: 7pt;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
#navfoot {
color: #666666;
text-align: center;
vertical-align: middle;
margin-top: 35px;
}

/* -----------------Back Grounds--------------------- */

#bgtheme {
clear: none;
z-index: 99;
background-image: url(../images/SVW_initial_layout_bg.jpg);
background-repeat: no-repeat;
background-position: center top;
height: 293px;
z-index: 10;
}
#bgtheme2 {
clear: none;
z-index: 99;
background-image: url(../images/SVW_initial_layout_bg.jpg);
background-repeat: no-repeat;
background-position: center top;
height: 293px;
z-index: 10;
}
#bgshade {
margin: 0px;
padding: 0px;
background-image: url(../images/SVW_initial_bg_shading.gif);
background-repeat: repeat-x;
background-position: center top;
height: 293px;
z-index: 5;
}
#bgshadow {
background-image: url(../images/SVW_intial_content_repeat.gif);
background-repeat: repeat-y;
background-position: center top;
z-index: 5;
margin: 0px;
padding: 0px;
z-index: 20;

/* -----------------More Styles--------------------- */

}
p,h1,h2,h3,h4,h5,pre {
margin-top: 0px;
margin-right: 10px;
margin-bottom: 10px;
margin-left: 15px;
}
#spacer {
background-image: url(../images/SVW_intial_content_spacer.gif);
background-repeat: repeat-y;
width: 18px;
float: left;
overflow: hidden;
background-position: center center;
color: #FFFFFF;
text-indent: -1000pt;
height: 300px;
}
#container {
width: 739px;
margin: 0 auto;
}
#leftsidebar {
margin-top: 10px;
width: 219px;
margin-right: 0px;
float: left;
}
#footlist ul {
display: inline;
list-style-type: none;
}
#footlist li {
display: inline;
list-style-type: none;
vertical-align: middle;
font-size: 8pt;
}
#extracontent {
float: right;
width: 257px;
margin-top: 10px;
}
.textize a:link, .textize a:visited {
text-decoration: none;
}
.textize a:hover {
text-decoration: none;
}
.sidebox a:link, .sidebox a:visited {
color: #7d903f;
text-decoration: none;
font-weight: bold;
}
.sidebox a:hover {
color: #333333;
}
#extracontent a:link, #extracontent a:visited {
color: #7d903f;
text-decoration: none;
font-weight: bold;
}
#extracontent a:hover {
color: #333333;
}
ul {
list-style-type: none;
}

/* -----------------Sizing--------------------- */

#sizing {
float: right;
margin-top: 5px;
margin-bottom: 0px;
}

/* -----------------Navigation Bar Buttons--------------------- */

#homemain{
height: 30px;
width: 59px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/SVW_home_button.gif) no-repeat left top;
display: block;
float:left
}
#homemain:hover{
background-position: bottom left;
}
#accomomain{
height: 30px;
width: 114px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/SVW_accomo_button.gif) no-repeat left top;
display: block;
float:left
}
#accomomain:hover{
background-position: bottom left;
}
#mediamain{
height: 30px;
width: 65px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/SVW_media_button.gif) no-repeat left top;
display: block;
float:left
}
#mediamain:hover{
background-position: bottom left;
}
#feedbackmain{
height: 30px;
width: 84px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/SVW_feedback_button.gif) no-repeat left top;
display: block;
float:left
}
#feedbackmain:hover{
background-position: bottom left;
}
#businessmain{
height: 30px;
width: 140px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/SVW_business_button.gif) no-repeat left top;
display: block;
float:left
}
#businessmain:hover{
background-position: bottom left;
}
#contactsmain{
height: 30px;
width: 87px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/SVW_contacts_button.gif) no-repeat left top;
display: block;
float:left
}
#contactsmain:hover{
background-position: bottom left;
}
#mainspacer{
width: 40px;
text-indent: 100000px;
overflow: hidden;
display: block;
float:left ;
margin: 0px;
padding: 0px;
}

/* -----------------Navbar styles--------------------- */

#navmainbar {
background-image: url(../images/SVW_intial_repeat_brown.gif);
background-repeat: repeat-y;
height: 30px;
width: 720px;
display: inline;
text-align: center;
margin: 0px;
padding: 0px;
}
ul#navmainlist li {
display: inline;
}
ul#navmainlist {
list-style-type: none;
margin: 0px auto;
}
#navmain {
background-image: url(../images/SVW_intial_repeat_brown.gif);
background-repeat: repeat-y;
height: 30px;
width: 720px;
margin: 0px;
padding: 0px;
}
#navmainbar2 {
height: 34px;
width: 720px;
display: inline;
text-align: center;
}
ul#navmainlist2 li {
display: inline;
}
ul#navmainlist2 {
list-style-type: none;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
}
ul#navmainlist1 li {
display: inline;
}
ul#navmainlist1 {
list-style-type: none;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
}
#navmain2 {
height: 34px;
width: 720px;
background-image: url(../images/SVW_intial_navbar2.gif);
background-repeat: repeat-y;
margin-top: 10px;
line-height: 12px;
}

/* -----------------Theme Buttons--------------------- */

#cellartheme{
height: 17px;
width: 89px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/buttons/SVW_cellar_button_2.gif) no-repeat left top;
display: block;
float:left
}
#cellartheme:hover{
background-position: bottom left;
}
#fishingtheme{
height: 17px;
width: 59px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/buttons/SVW_fishing_button_2.gif) no-repeat left top;
display: block;
float:left
}
#fishingtheme:hover{
background-position: bottom left;
}
#heritagetheme{
height: 17px;
width: 66px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/buttons/SVW_heritage_button_2.gif) no-repeat left top;
display: block;
float:left
}
#heritagetheme:hover{
background-position: bottom left;
}
#festivalstheme{
height: 17px;
width: 64px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/buttons/SVW_festivals_button_2.gif) no-repeat left top;
display: block;
float:left
}
#festivalstheme:hover{
background-position: bottom left;
}
#pubtheme{
height: 17px;
width: 86px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/buttons/SVW_pub_button_2.gif) no-repeat left top;
display: block;
float:left
}
#pubtheme:hover{
background-position: bottom left;
}
#floratheme{
height: 17px;
width: 104px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/buttons/SVW_flora_button_2.gif) no-repeat left top;
display: block;
float:left
}
#floratheme:hover{
background-position: bottom left;
}
#romancetheme{
height: 17px;
width: 74px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/buttons/SVW_romance_button_2.gif) no-repeat left top;
display: block;
float:left
}
#romancetheme:hover{
background-position: bottom left;
}
#golftheme{
height: 17px;
width: 60px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/buttons/SVW_golfing_button_2.gif) no-repeat left top;
display: block;
float:left
}
#golftheme:hover{
background-position: bottom left;
}
#trackstheme{
height: 17px;
width: 102px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/buttons/SVW_tracks_button_2.gif) no-repeat left top;
display: block;
float:left
}
#trackstheme:hover{
background-position: bottom left;
}
#arttheme{
height: 17px;
width: 29px;
text-indent: 100000px;
overflow: hidden;
background: url(../images/buttons/SVW_art_button_2.gif) no-repeat left top;
display: block;
float:left
}
#arttheme:hover{
background-position: bottom left;
}
.themespacer{
height: 17px;
width: 50px;
text-indent: 100000px;
overflow: hidden;
display: block;
float:left ;
margin: 0px;
padding: 0px;
}
.themespacer2{
height: 17px;
width: 30px;
text-indent: 100000px;
overflow: hidden;
display: block;
float:left ;
margin: 0px;
padding: 0px;
}

/* -----------------Silver advertisers--------------------- */

#silver {
background-image: url(../images/SVW_intial_repeat_brown.gif);
background-repeat: repeat-y;
margin-top: 10px;
text-align: left;
width: 720px;
clear: both;
}

#silverad1 {
width: 350px;
clear: none;
float: left;
}
#silverad2 {
width: 350px;
float: right;
clear: none;
}
#silverwrap {
background-image: url(../images/SVW_intial_repeat_brown.gif);
background-repeat: repeat-y;
margin-right: 10px;
margin-left: 10px;
}
.silveradtext {
width: 300px;
float: left;
}

/* -----------------Operators--------------------- */

#operator {
background-image: url(../images/SVW_intial_repeat_brown.gif);
background-repeat: repeat-y;
margin-top: 10px;
text-align: left;
width: 720px;
clear: both;
display: none;
}
#operatorleft {
width: 350px;
clear: none;
float: left;
}
#operatorright {
width: 350px;
float: right;
clear: none;
}
#operatorwrap {
background-image: url(../images/SVW_intial_repeat_brown.gif);
background-repeat: repeat-y;
margin-right: 10px;
margin-left: 10px;
}
.operatortext {
width: 300px;
float: left;
}
/* -----------------double column--------------------- */

#doublecolumn {
margin-top: 10px;
text-align: left;
width: 720px;
clear: both;
}
#doublecolumn h3 {
color: #7d547c;
}
.columnleft {
width: 355px;
margin: 0px 0px 10px;
float: left;

}
.columnright {
width: 355px;
margin: 0px 0px 10px;
float: left;

}
.columnwrap {
background-image: url(../images/SVW_intial_repeat_brown.gif);
background-repeat: repeat-y;
margin-right: 10px;
margin-left: 10px;
}
.columntext {
width: 300px;
float: left;
}

/* -----------------Hack for bg's in FF--------------------- */

.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
/* End hide from IE-mac */

/* -----------------sidebar styles--------------------- */

.imageleft {
margin: 10px 10px 5px;
float: left;
}
.imageright {
margin: 10px 10px 5px;
float: right;
}
.imagemiddle {
margin: 5px auto;
text-align: center;
display: block;
}
.sidebox {
width: 219px;
background-image: url(../images/misc/paperBGside_repeat.gif);
background-repeat: repeat-y;
margin: 0px;
overflow: hidden;
}
.topimage {
background-image: url(../images/misc/paperBGside_top.gif);
height: 19px;
width: 219px;
background-position: center;
}
.bottomimage {
background-image: url(../images/misc/paperBGside_bottom.gif);
height: 21px;
width: 219px;
background-position: center;

}
#topsidecontent p {
margin-left: 20px;
margin-bottom: 1px;
margin-top: 1px;
margin-right: 20px;
}

/* -----------------Image Styles--------------------- */

#operator img {
float: left;
width: 32px;
margin-left: 10px;
margin-top: 12px;
margin-right: 5px;
}
#silver img {
float: left;
width: 32px;
margin-left: 10px;
margin-top: 12px;
clear: none;
}
#doublecolumn img {
float: left;
width: 32px;
margin-left: 10px;
margin-top: 12px;
clear: none;
}

/* -----------------Jammedia--------------------- */

#jam {
background-image: url(../images/SVW_initial_layout_repeater.gif);
background-repeat: repeat;
text-align: right;
height: 30px;
width: 720px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
line-height: 30px;
vertical-align: middle;

}

/* -----------------Form Styles--------------------- */

#searchform {
margin: 10px;
}
#searchform legend {
padding: 0 2px;
font-weight: bold;
color: #7d903f;
}
#searchform fieldset {
padding: 5px 2px 0px;
border: none;
}
#searchform label {
padding: 5px 10px 0px 2px;
border: none;
}
input.btn{
color: #7d903f;
background-image: url(../images/misc/blankbutton.gif);
height: 25px;
width: 67px;
background-color: #FFFFCC;
border: none;
font-weight: bold;
}
input.btnhov{
background-image: url(../images/misc/blankbutton.gif);
height: 25px;
width: 67px;
background-color: #FFFFCC;
border: none;
color: #999944;
font-weight: bold;

}
.textbox {
border: 1px solid #CCCCCC;
color: #495425;

}
.textbox:focus{
border: 1px solid #7d903f;
background-color: #fcf9f0;

}
hr {
border: none 0;
border-top: 1px dashed #7d903f;
width: 70%;
height: 1px;
text-align: center;
}

/* -----------------list--------------------- */

.listtext {

}
.listtext2 {
color: #333333;

}
.list {
width: 355px;
margin: 0px;
}

/* -----------------bussiness directory--------------------- */

#bdinfo {

}
#bdaccomo {
border: 3px solid #7d547c;
}
#bdpub {

}
#bdgolf {

}
#bdromance {

}

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 10 years 26 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

Its to do with the floats in

Its to do with the floats in your double column. Floats are out of flow. That means block elements don't "see" them, but their inline content does.

In your case, the first in flow element after the floats is the H3, because its a block element and it doesn't see the floats it starts in the same place the floats start. Because the H3 content is inline it appears after the two double column, so the H3 will extend from the top of the previous double column down to its own content. The double columns with accommodation business entries are in floated columns so they won't be seen by #bdaccom, which makes the border only appearing around the (extended) H3.

The solution is to get each of the containers (bdinfo, bdaccomo, bdpub) to start their own display context - that will ensure they surround the floats and to make sure they clear the earlier floats.

e.g.

#bdinfo,
#bdaccomo,
#bdpub,
#bdgolf {
overflow: hidden; /* creates a new display context */
clear: both;
}

btw - accommodation has two m's.

big_pete
big_pete's picture
Offline
Regular
Australia
Last seen: 13 years 13 weeks ago
Australia
Timezone: GMT+11
Joined: 2005-08-07
Posts: 49
Points: 0

thanks so much! i had to

thanks so much!
i had to read it a few times to understand what you were saying, but the end result works! (and makes sense)

and thanks for pointing out the spelling mistake, you wouldnt believe how many people have looked at (and approved) the site, but havent picked it up!

thanks again