Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Center a repeat background image

Posted on 2013-02-06
3
Medium Priority
?
275 Views
Last Modified: 2013-02-11
Is there a way to center horizontally a background image and have it repeat, but fan out to the right and left?

My background image looks good on some screen widths, but on others, it cuts off on the right of the body and looks off-centered.

I'd like it to start in the center and then fan out from there so both the right and left of the body look uniform.

thanks.
0
Comment
Question by:Starr Duskk
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
Starr Duskk earned 0 total points
ID: 38860641
Found the answer:

background-position: center center;
0
 
LVL 9

Expert Comment

by:user_n
ID: 38860643
Can you give a link to the page or the html source with css files and images
0
 
LVL 2

Author Closing Comment

by:Starr Duskk
ID: 38875451
found it.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses

824 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