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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:13:35+00:00 2026-05-29T04:13:35+00:00

I have web pages with a boring white background and all their contents (the

  • 0

I have web pages with a boring white background and all their contents (the website logo and several google charts) are of the fixed width 700px and centered:

    h1,h2,h3,p,div,form { 
    text-align: center; 
}

I’d like to add a vertically-tiled png image underneath (just a stripe of 1px height), which would display a fixed width 800px of white and the rest should be some other color (like red in the example below) or gradient and should grow
with the page width:

enter image description here

How do you do it best (i.e. most reliable and for most browsers) with CSS or HTML?

  • 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-29T04:13:36+00:00Added an answer on May 29, 2026 at 4:13 am

    You’ll need to put your content into a container of 800px in order to achieve both, the red or gradient background and the striped PNG effect. So all your content would then go into a .container div and your styles would be:

    body{
       background:#ff0000;
    }
    
    .container{
        width:800px;
        margin:0 auto;
        position:relative;
        background:url('/path/to/image/image.png') repeat 0 0;
    }
    

    So all your content which currently appears in the body tag, will have to be placed in the .container div tag like so:

    <body>
        <div class='container'>
            <p></p>
            <h3></h3>
            .....
        </div>
    </body>
    

    Ideally, if you’re targeting a minimum screen resolution of 800 x 600, your .container width should be lesser than 800 to avoid the horizontal scrollbar.

    You might also find the links below useful in trying to create both, cross-browser gradients and the PNG:

    1. Stripe Generator – http://www.stripegenerator.com/

    2. CSS gradient creator – http://www.colorzilla.com/gradient-editor/

    The gradient creator above creates gradients using CSS and also has support for IE. In IE however, since the gradients are created using IE filters, it tends to cut any content hidden inside it, instead of allowing it to overflow. You can always also just use an image to create the gradient.

    You might also want to consider using CSS PIE, for IE compatibility – http://css3pie.com/

    Hope this helps.

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

Sidebar

Related Questions

I have a few mobile web pages. Several of them are internally linked from
I have several web pages to parse, and there are links like <a href=/news/monde/0,,3204267-VU5WX0lEIDUy,00.html
I have web pages that are endless pages -- i.e. if the user goes
I have created web pages where am using pixel to position various html elements.
I visited Avis.com, and I notice the web pages have *.ac extension. Not familiar
I have a lot of web pages that use the same exact html structure.
I have a couple of web-pages where I write out some code c# ,
I have a problem of web pages being cached even though I specify that
I have to download many many web pages and I am going to use
I have a solution with 3 projects.One of UI (contains web pages) and one

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.