I am having a problem with a site we are developing - for some reason the wrapper is not wrapping around the content divs. We have a border-bottom set to the bottom of the wrapper but it just immediately follows the header.
<!-- CONTENT START !--> <div id="content"> <br/> <br/> <h3><img src="images/portfolio.gif" /></h3> <div class="content3"> <div class="leftcol"> <h3>useful links</h3> <hr/> <ul> <li><a href="contact.asp">Contact us to learn more</a></li> <li><a href="solutions.asp">See the solutions we offer</a></li> <li><a href="http://www.avaya.com/gcm/master-usa/en-us/businesssize/segment/smallmediumbus/index.htm&Filter=BusinessSize:Small%20Business" target="_blank">Visit Avaya's SMB web site</a></li> <li><a href="http://www.microsoft.com/smallbusiness/products/server/default.aspx#overview" target="_blank">Learn about Microsoft Small Business Server & related products</a></li> </ul></div> <div class="rightcol"> <div class="subtab3"> <h3>PORTFOLIO</h3> <p>Xpanxion is still working on this page. We are working vigorously to prepare an online presentation of several business cases where our web design, print, and marketing capabilities are well illustrated. <p>In the meantime, please feel free to contact us directly and we can <br /> discuss with you the solutions we are offering current clients. Make<br /> sure you ask about our abilities with: <ul> <li><a href="webdesign.asp">WEB DESIGN & INTEGRATION</a></li>
So let me get this straight, you want the page to render like it is right now in IE7 correct? If so I will try to help this. Have you validated your markup and CSS to make sure you don't have an underlying problem with either one of those before you attempted a code review?
Thanks for your help. Yes, you are right, it currently displays correct in IE7 but not in Safari or DW design pane. Usually we have the opposite problem!
CSS and XHTML check out. CSS throws these unrelated errors:
7 body Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. 23 Same colors for color and background-color in two contexts div#hed div.tagline and a:hover 23 Same colors for color and background-color in two contexts hr and a:hover 28 hr Same colors for background-color and border-top-color 28 hr Same colors for background-color and border-left-color 28 hr Same colors for background-color and border-right-color 283 Same colors for color and background-color in two contexts div#hed div.tagline and div.content3 div.leftcol ul li a 283 Same colors for color and background-color in two contexts hr and div.content3 div.leftcol ul li a
Alright, well I have downloaded the website to my work machine here and currently got it into a format I can read it. At first glance I think you closed your content wrapper container to early, but I may be mistaken. With the scroll-bar issue I do believe IE is the only one who supports changing the scroll bar in the first place and it will be partial reason to validation failure. I will remove it from the code, and work into getting a working design across browsers for you. I am a Web Dev for Finish Line Inc shoes and currently pretty slow right now in the department so I have some time to help you out.
What you should first do is get rid of one of the closing div tags that is after the commented "Content End" and move it down to the closing div tags near the body close. I believe thats why your footer is not rendering correctly... at least at a quick glance...
When we first ran the XHTML verification it threw an error that we had an extraneous </div> tag. I deleted it right where you said (no need to add another as it was extra) but it didn't make any difference.
Well to me it still looks like you have closed your wrapper div before you should have....are you developing in firefox?...
If so download the firebug extension, its a great tool for development. You can inspect your page and see where your divs are all located and according to firebug it is saying you closed the wrapper right after the USEFUL Links, and Portfolio. heres what i might suggest...print the source code for that page and go through and match with a highlighter or pen where each div is closed, its a lot easier to find the div that i believe is causing part of the wrapper problem.
But don't you want the wrapper to extend to below the footer?...that way the footer is wrapped inside the wrapper, then the wrapper will force the footer to move right, and should align beneath the content. You should then remove the hr that you have going across the entire div and apply a top border to the footer. So the footer css would have
border-top: 3px solid #3c0;
that should give it the feel your looking for...
By theory I think you would want the site to look like this in the css...
Thanks, I like your idea of putting the border in the footer instead - makes sense. Wrapping the footer in that case works better also. I really appreciate it!!!!!!
Still not sure why I couldn't get the other way to work, but it won't be my first unsolved CSS mystery.
Ya something things act really crazy especially when you don't validate things, I am fairly new to CSS (about a year into it but I do it everyday now so I ramped up in knowledge fairly quickly...but i saw no on else attempting to help so I created and account to help provide some guidance ). But with your images that are not showing up in correct places try to format them to work in Firefox, and then use *html "divname" hack to specially apply attributes for Internet Explorer because Firefox, Opera, and Safari just ignore those conditions. If you need any more help you can e-mail me at jesse.riddle (at) gmail dot com