CSS Gradient change from top

If I do a CSS background gradient, is there a way to change it to start 60px from the top and not exactly at the top?

.global {
background: #90a7d6; /* Old browsers */
background: -moz-linear-gradient(top, #90a7d6 0%, #f0f0f0 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#90a7d6), color-stop(100%,#f0f0f0)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #90a7d6 0%,#f0f0f0 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #90a7d6 0%,#f0f0f0 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #90a7d6 0%,#f0f0f0 100%); /* IE10+ */
background: linear-gradient(to bottom, #90a7d6 0%,#f0f0f0 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#90a7d6', endColorstr='#f0f0f0',GradientType=0 ); /* IE6-9 */
}
Tim TitusCTOAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tom BeckCommented:
Add another color stop. Should work with most browsers. If you keep the second color stop at 0% it should make a sharp delineation between first color and the second color.
.global {
background: #90a7d6; /* Old browsers */
background: -moz-linear-gradient(top, #fff 60px, #90a7d6 0%, #f0f0f0 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(60px,#fff), color-stop(0%,#90a7d6), color-stop(100%,#f0f0f0)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #fff 60px, #90a7d6 0%,#f0f0f0 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #fff 60px, #90a7d6 0%,#f0f0f0 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #fff 60px, #90a7d6 0%,#f0f0f0 100%); /* IE10+ */
background: linear-gradient(top bottom, #fff 60px, #90a7d6 60%,#f0f0f0 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#90a7d6', endColorstr='#f0f0f0',GradientType=0 ); /* IE6-9 */
}

Open in new window

Tim TitusCTOAuthor Commented:
Excellent!  This is 90% of what I wanted!  One last quick question: The 60px above the gradient start is now white.  How do I get that part to be #90a7d6 color?
Tom BeckCommented:
If you want the top 60px to be the same color as the first color stop then just start the first color stop at 60px instead of 0%.

Example:
background: -moz-linear-gradient(top, #90a7d6 60px, #f0f0f0 100%);

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tim TitusCTOAuthor Commented:
Excellent description of how to solve the problem!  Thanks!
Tom BeckCommented:
You're welcome. Thanks for the points.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.