Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Depends on what you want to do with the image, but if it’s just a static image it’s probably easier to paste it into the css-file. Example:

    #headerimg {
    margin: 0;
    height: 200px;
    background-image: url(“bgimage.jpg”);
    width: 100%;
    }

    Thread Starter webberrr

    (@webberrr)

    YES! If I put an “overflow: auto;” in the #page piece I posted above, the blog-part finally auto-adjusts! I have no idea what it does, but it works in both IE and Mozilla now.

    #page {
    background-color: white;
    margin: 20px auto;
    padding: 0;
    width: 789px;
    border: 1px solid #959596;
    overflow: auto;
    }

    One last (small) problem, is that the sidebar is now still not auto-adjusting to the length of the contents next to it. This is kind of logical (because there is less text in the sidebar), but do you have any tip on how to make the sidebar just as long as the contents (blog) next to it?

    I was thinking maybe a fake sidebar in the contents part with the same background color, and then make the real one float above it or something. Don’t really know how to do that though. I know how to make the contents part wider and make a fake sidebar (or just the background) on the right side, but how do I make the real one float above it?

    Thread Starter webberrr

    (@webberrr)

    That’s going to be difficult, the page is hosted on my localhost right now.

    The strange thing is that if I change the sidebar, everything auto-adjusts, also the height of the page. However, if I post something the height of the main content-page is NOT changed, not even the sidebar.

    I think the problem is that the page doesn’t “see” that there is content in the main content part.

Viewing 3 replies - 1 through 3 (of 3 total)