Tue, 2011-11-01 15:12
Hi,
The site http://www.barbourchiro.com/ works just fine in IE but in FF and Chrome it is not aligning properly.
The problem is at -
<div class="focus_block"> <div class="block_left"></div> <div class="block_right"></div> <br clear="all" /> </div>
Any help would be great. I am having a hard time figuring this one out as I got this site from someone else and early am not strong with CSS.
The full css is -
/* CSS Document */ body{ background-image:url(images/bg.jpg); background-repeat:repeat-x; margin:0px; font-family: tahoma, Verdana, sans-serif; font-size: small;} .holder{ width:748px; margin-left:auto; margin-right:auto; margin-top:10px; background-image:url(images/curve_mid.jpg); background-repeat:repeat-y; } .header{ height:36px; padding:5px; padding-left:22px; } .navigation{ float:right; font-size: 20px; font-weight: normal; letter-spacing: -1px; color: #006699; padding-right:22px; padding-top:2px; } .block_left{ background-image:url(images/nav_block1.gif); background-repeat:no-repeat; float:left; width:227px; height:191px; margin-left:22px; } *html .block_left{ background-image:url(images/nav_block.gif); background-repeat:no-repeat; float:left; width:227px; height:191px; margin-left:10px; } .block_right{ background-image:url(images/side_banner_bg.jpg); ; background-repeat:no-repeat; float:right; width:437px; height:86px; margin-right:22px; font-size: 36px; padding-left: 10px; padding-top: 105px; color: #FFFFFF; } *html .block_right{ background-image:url(images/side_banner_bg.jpg); ; background-repeat:no-repeat; float:right; width:437px; height:86px; margin-right:10px; font-size: 36px; padding-left: 10px; padding-top: 105px; color: #FFFFFF; } .top_curve{ background-image:url(images/curve_top.jpg); background-repeat:no-repeat; height:16px;} .left_shade1{ background-image:url(images/curve_left.jpg); background-repeat:no-repeat; width:5px; float:left; height:600px; } .center_content{ width:738px; background-color:#FFFFFF; float:left; } .right_shade1{ background-image:url(images/curve_right.jpg); background-repeat:no-repeat; width:5px; float:left; height:600px; } .left_content{ float:left; width:227px; margin-left:22px; margin-top:10px; } *html .left_content{ float:left; width:227px; margin-left:10px; margin-top:10px; } .right_content{ margin-top:10px; float:right; width:437px; margin-right:22px; padding-left: 10px; border-left: solid 1px #F2F2F2; } *html .right_content{ margin-top:10px; float:right; width:437px; margin-right:10px; padding-left: 10px; border-left: solid 1px #F2F2F2; } .bottom_curve{ height:17px; background-image:url(images/curve_btm.jpg); background-repeat:no-repeat; background-position: center center; clear:both; } .footer{ width:748px; margin-left:auto; margin-right:auto; text-align:center; margin-top:10px; margin-bottom:25px; } h2 { margin: 0; color: #006699; font-size: 18px; font-weight: normal; letter-spacing: -1px; padding-left:25px; background-image:url(images/bullet.gif); background-repeat:no-repeat; background-position: 5px 3px; } h2 a:link, h2 a:hover, h2 a:visited { color: #000; text-decoration: none; } h1 { font-size: 20px; font-weight: normal; letter-spacing: -1px; color: #006699; margin: 0; } h1 a:link, h1 a:visited, h1 a:hover { text-decoration: none; color: #003366; } h4 { margin: 0; color: #006699; font-size: 12px; padding-top:5px; padding-bottom:9px; background-image:url(images/dots-hr-4.gif); background-repeat:repeat-x; } h3 { margin: 0 0 8px 0; color: #999; font-size: 19px; font-weight: normal; letter-spacing: -1px; text-transform: uppercase; } h5 { margin: 0 0 8px 0; color: #999; font-size: 12px; font-weight: normal; text-transform: uppercase; } .hr{ width: 100%; height:8px; background-image:url(images/dots-hr.gif); margin-left:auto; margin-right:auto; margin-bottom:10px; background-repeat: repeat-x; background-position:center; } a:link, a:visited { color: #006699; text-decoration: none; } a:hover { text-decoration: underline; } .nav{ color:#006699; text-decoration:none; padding-left:20px; padding-right:5px; background-image:url(images/nav_buddy.gif); background-repeat:no-repeat; background-position: 7px 9px;} .nav:hover{ color:#003366; text-decoration:none; padding-left:20px; padding-right:5px; background-image:url(images/nav_buddy.gif); background-repeat:no-repeat; background-position: 7px -9px;}
//mod edit: bbcodes added. ~gt
Tue, 2011-11-01 15:14
#1
Sorry the area on the html is
Sorry the area on the html is -
<div class="focus_block"> <div class="block_left"></div> <div class="block_right"></div> <br clear="all" /> </div>
It did not take it before.
Thu, 2011-11-03 06:30
#2
The issue doesn't appear to
The issue doesn't appear to be so much the float aspect as it is the menu wrapping to 2 lines in FF.
In .header, delete the height property and add {overflow: hidden;} to enclose its float child elements.
Edit .navigation as follows:
.navigation { color: #006699; font-size: 20px; font-weight: normal; letter-spacing: -1px; margin: 0 auto; overflow: hidden; /*Creates a new block formatting context so it will live peaceably with its float sibling.*/ padding-top: 2px; white-space: nowrap; }
That menu should really be coded as a ul, not a div.
cheers,
gary