Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6567931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:23:43+00:00 2026-05-25T14:23:43+00:00

The title prettymuch says it all. The first picture below is a screenshot when

  • 0

The title prettymuch says it all. The first picture below is a screenshot when the whole page is about 8000 pixels tall, taken in the latest version of Chrome:

enter image description here

while this picture is for a different page (using the same CSS) which is about 800 pixels tall:

enter image description here

and here is the code:

  body{ 
     background-color: #f3ffff;
     margin:0px;
     background-image: url('/media/flourish.png'),
        -webkit-linear-gradient(
            top, 
           rgba(99, 173, 241, 1) 0px, 
           rgba(0, 255, 255, 0) 250px
        );

     background-image: url('/media/flourish.png'), 
        -moz-linear-gradient(
           top, 
           rgba(99, 173, 241, 1) 0px, 
           rgba(0, 255, 255, 0) 250px
        );


     background-image: url('/media/flourish.png'), 
        -o-linear-gradient(
           top, 
           rgba(99, 173, 241, 1) 0px, 
           rgba(0, 255, 255, 0) 250px
        );
     background-position: center top, center top;
     background-repeat: no-repeat, repeat-x;
     -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#63ADF1', endColorstr='#00000000')";
  }

The gradient is meant to cut off at 250px from the top of the page. The fact that the degree of banding seems to depend on the total height of the page is very strange: pages of heights in between these two (800px and 8000px) seem to have bands which are smaller than the first example but still noticeable.

Interestingly, I was previously using -webkit-gradient('linear'...) instead and that did not have the same problem; I only swapped over to -webkit-linear-gradient so it would fall in line with my -moz and -o gradients.

I haven’t tried it on Safari, but the code above makes it work perfectly fine in Firefox and kind-of-work in Opera (the colors get messed up, but the gradient is still smooth). Nevermind IE, which i have given up on.

Has anyone else seen this before?

Update: This happens on my Mac’s Chrome/Safari too, but the bands are about 1/3 the size of the bands shown in the top image, for the exact same page. The banding is identical in both OSX Chrome and OSX Safari.

1/3 the size is still noticeable, but not quite so jarring. The actual page is at http://www.techcreation.sg/page/web/Intro%20to%20XTags/, if you want to see for yourself in some other browser. The CSS is “inline” css compiled in-browser using less.js.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:23:44+00:00Added an answer on May 25, 2026 at 2:23 pm

    Looks like a webkit bug. I came up with the work-around below, tested on the latest Chrome and FF. In short, you’ll position a div containing the background behind your main content. I also added a few styles to make IE happier.

    Given this HTML:

    <html lang="en">
    <head>
        <style>
            ...
        </style>
    </head>
    <body>
        <div class="background">bgdiv</div>
        <div class="content_pane">
            <div class="titlebar">Leave a Comment!</div>
            <div class="comment">Your Comment.</div>
        </div>
    </body>
    </html>
    

    Combined with this stylesheet:

        body{
            background-color: #f3ffff;
            min-height: 100%;
            margin:0px;
        }
        .background {
            height: 250px;
            left: 0;
            position: absolute;  /* could use fixed if you like. */
            right: 0;
            top: 0;
            z-index: -10;
    
            background-image:
                -webkit-linear-gradient(top,
                    rgba(99, 173, 241, 1) 0px,
                    rgba(0, 255, 255, 0) 250px
                );
            background-image:
                -moz-linear-gradient(top,
                    rgba(99, 173, 241, 1) 0px,
                    rgba(0, 255, 255, 0) 250px
                );
            background-image:
                -o-linear-gradient(top,
                    rgba(99, 173, 241, 1) 0px,
                    rgba(0, 255, 255, 0) 250px
                );
            background-image:
                -ms-linear-gradient(top,
                    rgba(99,173,241,1) 0%,
                    rgba(0,255,255,0) 250px
                ); /* IE10+ */
            filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#63adf1', endColorstr='#0000ffff',GradientType=0 ); /* IE6-9 */
            background-image:
                linear-gradient(top,
                    rgba(99,173,241,1) 0%,
                    rgba(0,255,255,0) 250px
                ); /* W3C */
            background-position: center top, center top;
            background-repeat: no-repeat, repeat-x;
        }
        .content_pane {
            background: white;
            border: 1px dotted white;
            border: 1px solid grey;
            font-family: arial, sans;
            font-weight: bold;
            margin: 6em auto 5em;
            width: 50%;
        }
        .titlebar {
            background: #3f7cdb;
            color: white;
            font-family: arial, sans;
            padding: .25em 2ex .25em;
        }
        .comment {
            padding: 1em;
        }
    

    It should come out looking like this, regardless of window size:

    Chrome image

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Title pretty much says it all. I have a page called login.jsp: <f:view> <html>
Title pretty much says it all. The web.config, unchanged from how VS2008SP1 generated it,
The title pretty much says it all, but in SQL Server 2005 Management Studio,
The title pretty much says it all. I have a project that for political
The title, while long, pretty much says it all. What I have is a
Title says it pretty much all : is there a way to get the
The title pretty much says it all, how do I know if I'm getting
The title pretty much says it all, but here's some background. We have a
The title pretty much says it all, so here's the code: #include <stdio.h> /*
The title pretty much says it all, I've got a 'web site' that was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.