WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] BG Gradient doesn't cover the whole screen (6 posts)

  1. rseaver06
    Member
    Posted 3 years ago #

    Ok, so I'm not sure why, but the .bg-gradient doesn't cover my entire page, it kind of stops half way down for no apparent reason. Any ideas?

  2. shahar
    Member
    Posted 3 years ago #

    A url would be helpful...

  3. rseaver06
    Member
    Posted 3 years ago #

    Sorry bout that, could have sworn I posted it. http://www.ketsdeverconstruction.com.

  4. shahar
    Member
    Posted 3 years ago #

    np :)

    Try this out:

    .bg-gradient {
        background: url(images/bg-gradient.png) left bottom repeat-x;
        padding:1px
    }

    Then you only have the issue of the wpstats img creating a space below the .bg-gradient div, so move that inside or hide it, and it's fixed.

    The problem was that you had height:100% which gives the div the height of the browser window and no more. Removing that style allow the div to expand according to it's default behaviour.

  5. rseaver06
    Member
    Posted 3 years ago #

    *phew* Somehow I copied the code in wrong the first time I tried it and ended up with my whole page thrown off to the left. Came back and tried again and got it perfect. Thanks for your help!

  6. shahar
    Member
    Posted 3 years ago #

    You're welcome :)

Topic Closed

This topic has been closed to new replies.

About this Topic