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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:22:47+00:00 2026-06-05T07:22:47+00:00

I am using an image as the background for my site. It has a

  • 0

I am using an image as the background for my site. It has a black/white gradient, and is 1px wide.

The CSS:

background-image:url('../image/gradient.png');

which makes it repeat itself. The height of the image is 2000px.

Is it possible to change the height of the image dynamically, so it fits all page sizes: If the height of a page is less than 2000px, the height of the image should be smaller, if the height of the page is bigger, the image should be bigger.

Thanks in advance

I have tried various in-browser gradient techniques, and they dont seem to work the same on all browsers.

  • 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-05T07:22:48+00:00Added an answer on June 5, 2026 at 7:22 am

    Maybe am not getting the right context of your question, but this can be do it easily with somethin like

    #SomeImg.src {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    }
    

    Resize this page to see it action: http://css-tricks.com/examples/ImageToBackgroundImage/

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

Sidebar

Related Questions

I have a background image with a parenthesis in the filename: <DIV style=BACKGROUND: url('http://site.com/image(8).png');></DIV>
I'm working on a site which has a scrolling background image. When i go
I have given a table background image using css background-image property. The cells are
Is it possible to have transparent background image using CSS3? background: url(../img/bg_paperlines.jpg) repeat-x; Using
http://jsfiddle.net/nUcXQ/ How to get dynamic height on the main (black background) I'm using image
Possible Duplicate: Offset a background image from the right using CSS CSS usually is
I have a site where I randomize the background image using a php rotator
I'm trying to create a simple image navigation for my site, using CSS to
I have CSS with background-image's elements that refer to another site. Problem is, that
The background image is missing in ie7; only ie7 has an issue. The site

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.