Solved

Repeating bottom part of background image for a page

Posted on 2011-03-22
4
185 Views
Last Modified: 2012-05-11
I have a background image that's a gradient (lighter at the top that transitions to a darker checkered pattern at the bottom) and I want to repeat the darker section of the background image for as long as the page is.  What is the best way to go about this?  Thanks for any help.
0
Comment
Question by:mike2036
  • 2
4 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 35194254
As long as it is a solid color at the bottom, I usually make the background color the same as the part at the bottom.
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 125 total points
ID: 35194272
With the checkered pattern you may have to just make a very tall background image.  I think one of my sites has one that is 2500px tall.
0
 
LVL 14

Expert Comment

by:Designbyonyx
ID: 35194391
background: #000 url(/path/to/bg-image.png) repeat-x left top;

Where #000 is the bottom most color of the gradient.
0
 
LVL 16

Expert Comment

by:rbudj
ID: 35194437
Since you have a pattern, a solid color is not what you are looking for. Create a container div with 100% width and background set to the full height of the gradient with repeat-x. Then just set the background of the body to the full color pattern.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question