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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:01:06+00:00 2026-05-27T01:01:06+00:00

I have two different gradients that need to repeat on the x axis. One

  • 0

I have two different gradients that need to repeat on the x axis. One gradient appears to the left of my page layout all the way to far left browser window and the other needs to repeat from the right of my page layout to the far right browser window. The entire width of the page has an image that blends into both and appears above the repeating backgrounds.

Ideally, I could use two DIVs and set them to 50% width, then place the 960 width part over top of both in the center of the window, but I don’t see any way to do this.

How can I accomplish this using CSS? I need to support IE7+.

  • 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-27T01:01:08+00:00Added an answer on May 27, 2026 at 1:01 am

    This should work. I would only make the green the repeatable image and use the background color to make the red (represented by “red” below).

    CSS

    body {
        position: relative;
    }
    
    #left {
        background: red url(/yourleftimagefile) bottom left repeat-x;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 50%;
        z-index: 0;
    }
    
    #right {
        background: red url(/yourrightimagefile) top left repeat-x;
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 50%;
        z-index: 0;
    }
    
    #center {
        position: relative;
        z-index: 1;
        width: 960px;
        margin: 0 auto;
    }
    

    HTML

    <div id="#center"></div>
    <div id="#left"></div>
    <div id="#right"></div>
    

    The html assumes a flexible height #center but it could be made a fixed height.

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

Sidebar

Related Questions

I have two different modules that need access to a single file (One will
I have two different threads. the first one is the main thread that must
I have two different models that need saving; a TextFile object and a static
I have two different tables from which I need to pull data blogs which
I have two different views that makes upwards of 500 partial view calls each
I have two different jqGrids in the same page. In the first grid I've
I have two different products Prod_A and Prod_B on the same page, say www.xyz.com/index1.html
I have two different domains that both point to my homepage in the same
I have two different libraries critical to my application that are dependent on different
I have two different databases that contain two tables with the exact same design.

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.