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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:20:44+00:00 2026-05-30T21:20:44+00:00

I am trying to have a header which has a fade left from light-blue

  • 0

I am trying to have a header which has a fade left from light-blue to blue, a center which is blue and a right which is blue to light-blue fade out. The header must be 100% in width. Can someone please tell me if this is the best approach to have a css driven header section, which consists of a left fade (background image which fades), a right fade and a center header section.. The issue I am having is that the current way is overflowing/restricting me when setting pixels incase someone decides to resize the browser window. Any help will be appreciated.. cheers.

 <div id="header">
<div id="leftfade"></div>
<div id="header_container">
   <div id="languagechooser"></div> 
    <div id="logo"></div>    
  <div id="navbar">
        <ul>
            <li class="navleft"><a href="aa.a">HOME</a></li>
            <li><a href="aa.a">xxxxxxxx</a></li>
            <li><a href="aa.a">xxxxxxxxxxxx</a></li>
            <li><a href="aa.a">xxxxxxxxxx</a></li>
            <li><a href="aa.a">xxxxxxxxxxxx</a></li>

        </ul>                                                             
    </div>                
</div>                     
<div id="rightfade"></div></div>

    body{
background: #FFFFFF;
margin: 0px auto;
font-size: 62.5%;
color:#000000;
width:100%;
min-width:965px;}
   #header{
position:relative;
height:157px;
background-color:#74d7ea;}
  #header #leftfade
  {
    float:left;
    background: url(../img/header_leftfade.png) repeat-y top left;
    width:25%;  
    height:157px;}
    #header #rightfade{
    position:absolute;
    right:0;
    background: url(../img/header_rightfade.png) repeat-y top right;
    width:25%;
    height:157px;}
    #header #header_container{

float:left;
position:relative;
text-align:left;
min-width:50%;
    height:157px;}
    #header #logo{
float:left;
background: url(../img/logo.png) no-repeat;
width:408px;
height:63px;
margin-top:20px;}
    #header #languagechooser{
float:right;
width:150px;
height:50px;
background-color:#ffffff;
margin-left:100px;}
    #header #navbar{
clear:both;
position:relative;
top:15px;
height:30px;
background-color:#63bdce;
width:98%;
 overflow:hidden;}
    #header #navbar ul{ list-style:none;}

    #header #navbar ul li{  float:left;}
    #header #navbar ul li a{
 background: url(navi_bg_divider.png) no-repeat right;
 padding-right: 12px;
 font: bold 1.7em Myriad Pro, Arial, Helvetica, sans-serif;
 padding-left: 12px;
 display: inline-block;
 line-height: 30px;
 text-decoration: none;
 color:#ffffff;}
  • 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-30T21:20:46+00:00Added an answer on May 30, 2026 at 9:20 pm

    If you want a gradient to resize, try a CSS3 gradient instead of using images. Or you could center the blue section with background-position:center; and let the white left and right take up as much space either side as is left after any resize.

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

Sidebar

Related Questions

I'm trying to write a framework library which wraps MPI. I have a header
I'm trying to figure out how I can have a comment header automatically added
So I have a header file which has function implementations in it as well
I have a <table> that has a header row. I'm trying to add an
I have a header file which has the html <head> tag in it. I'm
I am trying to have a table header, in a seperate div stay in
What I am trying to is have a header image centered on the top
I have a problem with php header redirect. I already spent hours trying to
I'm trying to make all rows have a hover background except the header row.
I am trying to pass a variable within a header link. I have tried

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.