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

  • Home
  • SEARCH
  • 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 7721647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:58:35+00:00 2026-06-01T03:58:35+00:00

I think the easiest way to explain is simply linking to an example of

  • 0

I think the easiest way to explain is simply linking to an example of what I want:

http://macrumors.com

At the top there’s a small blue gradient that doesn’t stretch very far.

I want to replicate this, but the only way I know how to do gradients in CSS3 is from top to bottom of the page, not stopping midway through. I looked around and couldn’t really find anything, though I did see color-stop property, but I’m not sure if that’s what I’m looking for.

Could anyone give me a hand?

  • 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-06-01T03:58:36+00:00Added an answer on June 1, 2026 at 3:58 am
    #test {
        background: #1e5799; /* Old browsers */
        background: -moz-linear-gradient(top,  #1e5799 0%, #e2e2e2 10px); /* FF3.6+ */
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1e5799), color-stop(100px,#e2e2e2)); /* Chrome,Safari4+ */
        background: -webkit-linear-gradient(top,  #1e5799 0%,#e2e2e2 100px); /* Chrome10+,Safari5.1+ */
        background: -o-linear-gradient(top,  #1e5799 0%,#e2e2e2 100px); /* Opera 11.10+ */
        background: -ms-linear-gradient(top,  #1e5799 0%,#e2e2e2 100px); /* IE10+ */
        background: linear-gradient(top,  #1e5799 0%,#e2e2e2 100px); /* W3C */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#e2e2e2',GradientType=0 ); /* IE6-9 */
        ​}​
    

    I have no idea what blue and hight is used on that background image, but you can easily insert in into code pasted above. Demo: http://jsfiddle.net/xyn4f/

    You should also check online gradient generators. I used that one to generate the code.

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

Sidebar

Related Questions

I think the easiest way to explain this is by example. I have a
The easiest way to think of my question is to think of a single,
I think the easiest way to ask this question is with the actual real-world
The easiest way I could think of is a for loop: var arr=[[hey,oh],[scar,tissue],[other,side]]; var
I'm messing with a simple authorization scheme. I think the easiest way to do
Easiest way to explain what I mean is with a code sample. This doesn't
Tell why you think Python, Perl, Ruby, etc is easiest for plugging in modules
Think about the following: Your ISP offers you a dynamic ip-address (for example 123.123.123.123).
What is the easiest way to save UIView's representation to file? My solution is,
Is there a way to add delete controls, like in UITableViewCell, on a table

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.