Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorxpanxion
    • CommentTimeJan 17th 2008
     permalink
    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.

    Page can be viewed at http://www.xpanxion.net/portfolio.asp. Other pages on the site using the same CSS file do the same thing.

    Any help would be appreciated. Page renders correctly in IE7 but not in Dreamweaver preview or Safari. Haven't tested FF or IE6 yet.
    • CommentAuthorxpanxion
    • CommentTimeJan 17th 2008
     permalink
    Here is the CSS:

    *********************************************************************************
    body {
    text-align: center;
    padding: 0;
    margin: 50px 0;
    font: 10pt Arial, Verdana Helvetica, sans-serif;
    color: #666;
    }

    h1, h2, h3, h4,
    ul, li {
    margin: 0;
    padding: 0;
    }

    a {
    text-decoration: none;
    color: #666;
    }

    a:hover {
    color: #c30;
    }

    hr {
    border: #c30 2px solid;
    background-color: #c30;
    display: block;
    height: 3px;
    margin-bottom: 20px;
    }

    #wrapper {
    border-top: 1px #C30 solid;
    border-bottom: 3px #C30 solid;
    text-align: left;
    width: 800px;
    margin: 0 auto;
    padding: 0;
    }

    /* --------------------- Head section */
    div#hed {
    padding: 2px 0 0 0;
    width: 800px;
    height: 86px;
    }

    div#hed h1 {
    height: 84px;
    width: 292px;
    float: left;
    background: url(cssimg/logo.jpg) 25px 25px no-repeat;
    }

    div#hed h1 a {
    display: block;
    height: 83px;
    width: 292px;
    text-decoration: none;
    }

    div#hed ul.nav {
    line-height: 15pt;
    list-style-type: square;
    color: #CCC;
    background: url(cssimg/navbckgrnd.jpg) top right no-repeat;
    width: 199px;
    height: 84px;
    float: left;
    display: block;
    margin-right: 2px;
    }

    div#hed ul.nav li {
    padding: 0;
    margin: 0;
    width: 75px;
    height: 20px;
    }

    div#hed ul.nav li a {
    display: block;
    text-decoration: none;
    width: 75px;
    }

    li.portfolio {
    background: url(cssimg/nav.jpg) 0px 0px no-repeat;
    }
    li.solutions {
    background: url(cssimg/nav.jpg) 0px -23px no-repeat;
    }
    li.contact {
    background: url(cssimg/nav.jpg) 0px -45px no-repeat;
    }
    li.about {
    background: url(cssimg/nav.jpg) 0px -67px no-repeat;
    }

    a#portfolio:hover {
    background: url(cssimg/nav.jpg) -87px 0px no-repeat;
    height: 15px;
    }
    a#solutions:hover {
    background: url(cssimg/nav.jpg) -87px -23px no-repeat;
    height: 15px;
    }
    a#contact:hover {
    background: url(cssimg/nav.jpg) -87px -45px no-repeat;
    height: 15px;
    }
    a#about:hover {
    background: url(cssimg/nav.jpg) -87px -67px no-repeat;
    height: 15px;
    }

    div#hed div.tagline {
    float: left;
    width: 306px;
    background: #c30 url(cssimg/tagline.jpg) 7px 35px no-repeat;
    height: 84px;
    }

    #content {
    font-size: 0.7em;
    padding: 6px 0 0 0;
    border-top: 1px #c30 solid;
    clear: both;
    }

    #content .sidebar {
    float: left;
    width: 255px;
    height: 334px;
    background: url(images/block_walker.jpg) 0 0 no-repeat;
    }

    div.contentsub {
    float: left;
    width: 540px;
    }

    div.contentsub h2 {
    color: #c60;
    margin: 30px 0 30px 20px;
    font-size: 2.1em;
    clear: both;
    }

    div.contentsub h3,
    div.rightcol h3,
    div.leftcol h3 {
    color: #333;
    text-transform: uppercase;
    font-size: 1.2em;
    clear: both;
    }

    div.subtab, div.subtab2, div.subtab3 {
    background: url(cssimg/widget.jpg) 8px 0 no-repeat;
    }

    a.moreinfo {
    height: 13px;
    display: block;
    background: url(cssimg/more.jpg) 0 0 no-repeat;
    }

    a.moreinfo:hover {
    height: 13px;
    display: block;
    background: url(cssimg/more.jpg) 0 -12px no-repeat;
    }

    div.subtab {
    padding: 10px;
    float: right;
    width: 158px;
    margin: 0;
    }

    div.subtab2 {
    border-left: #c30 1px solid;
    border-right: #c30 1px solid;
    padding: 10px;
    float: right;
    width: 160px;
    margin: 0;
    }

    div.subtab3 {
    padding: 10px;
    }

    div.subtab p,
    div.subtab2 p {
    padding-bottom: 20px;
    border-bottom: #c30 1px solid;
    }

    div.subtab3 p {
    width: 300px;
    }

    div.subtab a,
    div.subtab2 a {
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    }

    div.content2 {
    background: url(cssimg/cntnt2_tile.jpg) 0 0 repeat-x;
    padding-top: 40px;
    width: 520px;
    margin: 10px;
    border-top: #c30 7px solid;
    clear: both;
    }

    div.content3 {
    background: url(cssimg/cntnt2_tile.jpg) 0 0 repeat-x;
    padding-top: 50px;
    border-top: #c30 7px solid;
    }

    div.content3 div.rightcol {
    float: left;
    width: 550px;
    background: url(cssimg/blocks.jpg) bottom right no-repeat;
    border-left: 1px #c30 solid;
    padding: 0 0 0 15px;
    }

    div.content3 div.leftcol {
    float: left;
    padding: 0 10px;
    margin: 0 15px 0 0;
    width: 180px;
    }

    div.content3 div.leftcol ul {
    list-style: none;
    line-height: 1.7em;
    }

    div.content3 div.leftcol ul li a {
    color: #c30;
    text-decoration: underline;
    }

    div.content3 div.leftcol ul li a:hover {
    color: #666;
    text-decoration: underline;
    }

    #footer {
    padding: 30px 10px 10px 10px;
    height: 20px;
    margin-top: 10px;
    clear: both;
    font-size: 0.8em;
    }

    div#footer div.inner {
    background: url(cssimg/logo_smll.jpg) 0 0 no-repeat;
    height: 20px;
    width: 200px;
    padding-left: 30px;
    float: left;
    }

    div#footer span {
    width: 400px;
    float: right;
    }

    div#footer span a {
    padding: 0 7px;
    }
    • CommentAuthorxpanxion
    • CommentTimeJan 17th 2008
     permalink
    Here is the HTML:

    *********************************************************

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Xpanxion, Inc. - Xpanding small business through technology - Tampa, FL</title>
    <link rel="stylesheet" type="text/css" href="0807_pxl.css" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <!--[if IE]>
    <style type="text/css">
    div#hed ul.nav {
    list-style: inside square;
    }
    </style>
    <![end if]!-->
    <style type="text/css" media="all">
    <!--

    div.content3 div.rightcol {
    float: left;
    width: 550px;
    background: url(cssimg/construction.jpg) top right no-repeat;
    border-left: 1px #c30 solid;
    padding: 0 0 0px 15px;

    }

    #wrapper #content .content3 .rightcol .subtab3 ul {
    margin-left: 50px;
    padding-top: 20px;
    }

    #wrapper #content .content3 .rightcol .subtab3 ul a:hover{
    color: #CC3300;
    }
    -->
    </style>

    </head>
    <body>

    <div id="wrapper">
    <!-- HEADER BEGIN !-->
    <div id="hed">
    <h1><a href="default.asp"> </a></h1>

    <ul class="nav">
    <li class="portfolio"><a href="portfolio.asp" title="Portfolio" id="portfolio"> </a></li>
    <li class="solutions"><a href="solutions.asp" title="Solutions" id="solutions"> </a></li>
    <li class="contact"><a href="contact.asp" title="Contact" id="contact"> </a></li>
    <li class="about"><a href="about.asp" title="About" id="about"> </a></li>
    </ul>

    <div class="tagline"> </div>

    </div>
    <!-- HEADER END !-->

    <!-- 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>

    <li><a href="informationtechnology.asp">INFORMATION TECHNOLOGY</a></li>
    <li><a href="telephony.asp">TELEPHONY</a></li>
    <li><a href="advertising.asp">PRINT & MEDIA ADVERTISING</a><br />
    <br />
    </li>
    </ul>



    </div>

    </div>

    </div>
    </div>
    </div>
    <!-- CONTENT END !-->
    </div>
    <div id="footer">
    <div class="inner">
    <div align="left">Copyright <a href="sitemap.asp">©</a> 2007 Xpanxion, Inc. <br />
    phone: 813.907.2150 | fax: 813.907.2154</div>
    </div>
    <div align="left"><span><a href="default.asp" title="Home">Home</a> | <a href="portfolio.asp" title="Portfolio">Portfolio</a> | <a href="solutions.asp" title="Solutions">Solutions</a> | <a href="contact.asp" title="Contact" >Contact</a> | <a href="about.asp" title="About">About</a></span>
    </div>
    </div>

    </body>
    </html>
    • CommentAuthorjriddle
    • CommentTimeJan 17th 2008
     permalink
    Xpanxion,

    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?
    • CommentAuthorxpanxion
    • CommentTimeJan 17th 2008
     permalink
    jriddle:

    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:

    197 div.subtabb Property scrollbar-face-color doesn't exist : #cccccc
    198 div.subtabb Property scrollbar-arrow-color doesn't exist : #c30
    199 div.subtabb Property scrollbar-base-color doesn't exist : #ffffff

    and these warnings:

    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
    • CommentAuthorjriddle
    • CommentTimeJan 17th 2008
     permalink
    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.
    • CommentAuthorjriddle
    • CommentTimeJan 17th 2008
     permalink
    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...
    • CommentAuthorxpanxion
    • CommentTimeJan 17th 2008
     permalink
    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.
    • CommentAuthorjriddle
    • CommentTimeJan 17th 2008
     permalink
    Alright...I am still working on it...might be an hour or so before I figure it out.
    • CommentAuthorjriddle
    • CommentTimeJan 17th 2008
     permalink
    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.
    • CommentAuthorxpanxion
    • CommentTimeJan 17th 2008
     permalink
    I will print and highlight, used that method before when all else fails.

    We dev in Dreamweaver - which shows the wrapper div tag closing right before the CONTENT END note.
    • CommentAuthorxpanxion
    • CommentTimeJan 17th 2008
     permalink
    Print and highlight showed all the tags in the right place, as does DW...
    • CommentAuthorjriddle
    • CommentTimeJan 17th 2008 edited
     permalink
    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...

    <div id="wrapper">
    <div id="header"></div>
    <div id="content"></div>
    <div id="footer"></div>
    </div>
    Thankful People: xpanxion
    • CommentAuthorxpanxion
    • CommentTimeJan 17th 2008
     permalink
    jriddle:

    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.
    Thankful People: jriddle
    • CommentAuthorjriddle
    • CommentTimeJan 17th 2008
     permalink
    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
Add your comments
    Username Password
  • Format comments as (Help)