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 7057713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:01:19+00:00 2026-05-28T04:01:19+00:00

See the gray bar in this example page: http://dss.com.bo/inicio.aspx Here is my attempt at

  • 0

See the gray bar in this example page:

http://dss.com.bo/inicio.aspx

Here is my attempt at recreating that gradient using CSS3 – also using CSS3PIE:

#navigation {
    border: 1px solid #888888;
    border-radius: 22px;
    -moz-border-radius: 22px;
    -webkit-border-radius: 22px;    
    height: 50px;
    font-family: Arial;    
    background: #AAAAAA;
    background: -webkit-gradient(linear, 0 0, 0 bottom, from(#AAAAAA), to(#757575));
    background: -webkit-linear-gradient(#AAAAAA, #757575);
    background: -moz-linear-gradient(#AAAAAA, #757575);
    background: -ms-linear-gradient(#AAAAAA, #757575);
    background: -o-linear-gradient(#AAAAAA, #757575);
    background: linear-gradient(#AAAAAA, #757575);
    -pie-background: linear-gradient(#AAAAAA, #757575);
    behavior: url(/Public/stylesheets/PIE.htc);
}

This result in:

enter image description here

How can I reduce the bleeding effect, so the color transition is harder?

  • 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-28T04:01:20+00:00Added an answer on May 28, 2026 at 4:01 am

    Have a white gradient fading in opacity up to 50% over your desired background color. This method can be used on any background color without changing the gradient CSS.

    Demo: http://jsfiddle.net/ThinkingStiff/Zn5Qb/

    CSS:

    #header { 
        background-color: #595454;
        background-image: linear-gradient( 
                top, 
                rgba( 255, 255, 255, .4 ) 0%, 
                rgba( 255, 255, 255, .1 ) 50%,
                rgba( 255, 255, 255, .0 ) 50.5%, 
                rgba( 255, 255, 255, .0 ) 100% );
            background-image: -webkit-linear-gradient( 
                top, 
                rgba( 255, 255, 255, .4 ) 0%, 
                rgba( 255, 255, 255, .1 ) 50%,
                rgba( 255, 255, 255, .0 ) 50.5%, 
                rgba( 255, 255, 255, .0 ) 100% );
            background-image: -moz-linear-gradient( 
                top, 
                rgba( 255, 255, 255, .4 ) 0%, 
                rgba( 255, 255, 255, .1 ) 50%,
                rgba( 255, 255, 255, .0 ) 50.5%, 
                rgba( 255, 255, 255, .0 ) 100% );
            background-image: -o-linear-gradient( 
                top, 
                rgba( 255, 255, 255, .4 ) 0%, 
                rgba( 255, 255, 255, .1 ) 50%,
                rgba( 255, 255, 255, .0 ) 50.5%, 
                rgba( 255, 255, 255, .0 ) 100% );
            background-image: -ms-linear-gradient( 
                top, 
                rgba( 255, 255, 255, .4 ) 0%, 
                rgba( 255, 255, 255, .1 ) 50%,
                rgba( 255, 255, 255, .0 ) 50.5%, 
                rgba( 255, 255, 255, .0 ) 100% );
        height: 42px;
        width: 100%;
    }
    

    HTML:

    <div id="header"></div>
    

    Output:

    enter image description here

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

Sidebar

Related Questions

See here http://www.hanselman.com/blog/InSearchOfThePerfectMonospacedProgrammersFontInconsolata.aspx - for want of a better description - the statement block
I have this test page: http://www.problemio.com/problems/problem.php?problem_id=305 You see the black bar with 3 tabs
Live example of background issue: http://webid3.feckcorp.com/ As you can see the gray stripped background
Click this link to see my concept image regarding the subject: http://i45.tinypic.com/k33c0i.jpg Hi! Is
See http://support.microsoft.com/kb/312629/EN-US/ I am using reponse.direct in my app as well and I am
does anybody know why I am getting this (see photo)? Here is how I
I am working on this site: http://www.problemio.com and if you mouse over the categories
see this demo from jquery ui you have to hold down the Ctrl key
See the title of this question. I want to play with the exception raised
[see later answer for more] I think this is just a simple rails question,

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.