Treehouse: Grow your CSS skills. Land your dream job.

Is this unavoidable?

  • # January 31, 2011 at 2:30 am

    Img here

    This happens when you resize the window to the put where it’s smaller than the content, then scroll over. I’ve noticed it on a lot of sites. It’s basically the background ending.

    Just asking because if it’s able to be dealt with then I’d like to deal with it. If not, no biggy. :)


    # January 31, 2011 at 8:07 am

    yet another problem which would never be faced if people were using tables

    # January 31, 2011 at 8:23 am

    It may be caused by using width: 100% on something. That means “as wide as the viewport” and hence why it ends when you scroll.

    # January 31, 2011 at 11:29 am

    Yeah very common problem, and no it’s not unavoidable as far as I know.

    Just use a min-width on the body tag (or what ever you have 100% width and the problem is occurring on) equal to (or slightly more than) your page wrap/container.

    So if you have the usual 960px width site, with the body repeating 100%, add min-width of, say 1000px on the body for example and the problem will go away.

    # January 31, 2011 at 5:57 pm

    Ah min-width worked. I don’t use width:100% in many cases and definitely not in this one, but it still did the trick. Strange that I never knew that before. I consider myself a seasoned CSSer. :D

    Thanks, dudes!

    # January 31, 2011 at 7:12 pm

    yet another problem which could be solved by not using tables

    # January 31, 2011 at 8:33 pm

    I must say, never really seen that happen before, but another easy CSS fix is there to help out!

    # January 31, 2011 at 8:34 pm

    @SAiNT it wasn’t actually much of a problem. Very easily fixed. I believe that in using tables you will run into many more problems than that.

    # February 1, 2011 at 4:21 am

    soap, there is nothing more natural and friendly than tables in HTML. :o|

    # February 1, 2011 at 4:38 am

    @SAiNT Pretty much the whole world disagrees with you.

    # February 1, 2011 at 9:08 am

    @SAiNT Is there a …nuff said.

    # February 4, 2011 at 4:29 am

    sliver37, lol, is there a DIV-tricks either?!! :))))

    jamy_za, Pretty much the whole world disagrees with you
    well, i really hope so, because that’s exactly what makes me right about it. ;-)

    # February 4, 2011 at 5:23 pm

    @SAiNT : there is nothing more natural and friendly than tables in HTML. :o|

    I hope you’re joking. Here is a link to learn and understand HTML, that is if you were not.

    # February 4, 2011 at 7:32 pm

    Just to sort of clarify to anyone reading this that is still learning:

    There is no way you should be using Tables in the layout of any design. Do not do this. It is terrible practice and will ruin you when you need to accomplish site-wide design changes.

    Do not use tables for layout.

    @SAiNT – this is not the first time I’ve had to clarify something that you’ve stated to be the truth, please don’t flood the forum with anymore ‘table talk’.

    # February 5, 2011 at 6:40 am

    will ruin you when you need to accomplish site-wide design changes.
    that is a pure nonsense.
    consequently, maybe you should stop flooding the forum with your “anti-tables talk”?

    ChristopherBurton, unfortunately for you guys, i’m not joking :))
    thanks for the link btw.

Viewing 15 posts - 1 through 15 (of 27 total)

The topic ‘Is this unavoidable?’ is closed to new replies.