Results 1 to 4 of 4

Thread: Sidebar wonky when minimizing browser

  1. #1
    Join Date
    Mar 2010
    Location
    Northern Virginia
    Posts
    7
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Sidebar wonky when minimizing browser

    I found this free template off a site where it is free to use and it validates html and css.

    The problem is, if you minimize the screen the left sidebar does not collapse properly. I know it is because the body has an image repeating that makes up part of the sidebar background. Confusing I know, so I put it up this website where you can see it behave badly.

    http://gsconsulting2010.com/problems/

    As you can see, the sidebar has an image no repeat for the top part and then uses the rest of the background from the body background.

    I tried negative margins, I tried putting in different widths, so I am not sure there is a css solution. I may have to edit the images. I am not sure how I can convey the images well but the zip template can be found:

    http://www.freecsstemplates.org/css-templates/19/

    Here is the css code:

    <code css body>
    body {
    background: url(images/img01.png) repeat-y center;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #9E9D89;
    }
    </code css body>



    <code css sidebar>

    #sidebar {
    float: left;
    width: 240px;
    padding: 20px 0 0 30px;
    background: url(images/img03.png) no-repeat;
    font-size: smaller;
    color: #E3E3D4;
    }
    </code css sidebar>



    <code css content>

    #content {
    float: right;
    width: 580px;
    padding: 35px 50px 0 0;
    background: url(images/img04.png) no-repeat right top;
    }
    </code css content>




    Is there a css solution to this or am I banging head against the wall and need to do something with the images?????
    Much appreciated for any advise.

    Kip

  2. #2
    Join Date
    Sep 2008
    Location
    Seattle, WA
    Posts
    135
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Default

    I don't see anywhere where the div class 'entry' is defined. Could be your problem.

  3. #3
    Join Date
    Mar 2010
    Location
    Northern Virginia
    Posts
    7
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    I am sorry, I thought you might be able to see the whole thing since I uploaded it to http://gsconsulting2010.com/problems/. If you have the Firefox development toolbar, you can see everything.

    Here it is though.

    I see they did not give a definition for the 'entry' id, but it is inside the content div. I think they just did that for a placeholder. The problem is the sidebar has 2 parts to it. If you decrease the size of the browser from right to left, you will see the sidebar split. This is where the problem occurs.

    <code css>
    /*
    Design by Free CSS Templates
    http://www.freecsstemplates.org
    Released for free under a Creative Commons Attribution 2.5 License
    */

    * {
    margin: 0;
    padding: 0;
    }

    body {
    background: url(images/img01.png) repeat-y center;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #9E9D89;
    }

    form {
    }

    input, textarea {
    border: 1px solid #DEDED1;
    font: normal small "Trebuchet MS", Arial, Helvetica, sans-serif;
    }

    input.text {
    padding: .15em;
    background: #FDFDFB url(images/img06.gif) repeat-x;
    }

    input.button {
    background: #763320 url(images/img07.gif) repeat-x;
    color: #FFFFFF;
    }

    h1, h2, h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    color: #D15803;
    }

    h1 {
    letter-spacing: -.05em;
    font-size: 2.2em;
    }

    h2 {
    margin-top: 1em;
    letter-spacing: -.05em;
    font-size: 1.4em;
    }

    h3 {
    margin-top: 1em;
    }

    p, ul, ol {
    margin-top: 1em;
    line-height: 160%;
    }

    ul {
    list-style: none;
    }

    ul li {
    margin-left: 1em;
    padding-left: .75em;
    background: url(images/img05.gif) no-repeat left center;
    }

    ol {
    margin-left: 1em;
    list-style-position: inside;
    }

    blockquote {
    margin-left: 1em;
    padding-left: .75em;
    border-left: 1px solid #9E9D89;
    }

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

    a:hover {
    text-decoration: underline;
    color: #827F4F;
    }

    /* Header */

    #header {
    width: 860px;
    height: 100px;
    margin: 0 auto;
    padding: 0 40px;
    background: url(images/img02.png);
    }

    #logo {
    float: left;
    }

    #logo h1, #logo p {
    margin: 0;
    padding-top: 25px;
    float: left;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-style: italic;
    color: #F3F3E9;
    }

    #logo h1 {
    font-size: 3em;
    }

    #logo p {
    padding: 48px 0 0 5px;
    letter-spacing: -.055em;
    font-size: 1.4em;
    font-weight: bold;
    }

    #logo a {
    color: #F3F3E9;
    }

    #search {
    float: right;
    width: 15em;
    padding-top: 50px;
    }

    #search fieldset {
    border: none;
    }

    #search #s {
    width: 13em;
    }

    /* Page */

    #page {
    width: 940px;
    margin: 0 auto;
    }

    /* Content */

    #content {
    float: right;
    width: 580px;
    padding: 35px 50px 0 0;
    background: url(images/img04.png) no-repeat right top;
    }

    .post {
    }

    .post .meta {
    margin: 0 0 1.5em 0;
    padding: 0 0 1px 10px;
    background: url(images/img08.png) no-repeat left bottom;
    line-height: normal;
    }

    .post .meta small {
    font-size: 12px;
    }

    /* Sidebar */

    #sidebar {
    float: left;
    width: 240px;
    padding: 20px 0 0 30px;
    background: url(images/img03.png) no-repeat;
    font-size: smaller;
    color: #E3E3D4;
    }

    #sidebar ul {
    padding: 0;
    list-style: none;
    }

    #sidebar li {
    margin-bottom: 3em;
    padding: 0;
    background: none;
    }

    #sidebar li ul {
    }

    #sidebar li li {
    margin: 0 0 0 1em;
    padding-left: .75em;
    background: url(images/img09.gif) no-repeat left center;
    }

    #sidebar h2 {
    color: #FFFFFF;
    }

    #sidebar a {
    color: #FFFFFF;
    }

    /* Footer */

    #footer {
    width: 860px;
    margin: 0 auto;
    padding: 20px 40px;
    text-align: right;
    }

    #footer p {
    font-size: 10px;
    }

    </code css>

  4. #4
    Join Date
    Mar 2010
    Location
    Northern Virginia
    Posts
    7
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    I guess what I am asking is, can this even be fixed? via CSS?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •