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

  • Home
  • SEARCH
  • 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 8801455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:50:17+00:00 2026-06-14T00:50:17+00:00

I have a background image which currently repeats vertically and is centered on the

  • 0

I have a background image which currently repeats vertically and is centered on the page. Here’s some ASCII art to describe the image, with left and right hand sides marked.

----------
|        |
|        |
|L      R|
|        |
|        |
----------

I’d like to have the image repeated across the whole browser window by having the it flipped along the vertical edge each time:

----------------------------------------
|        ||        ||        ||        |
|        ||        ||        ||        |
|L      R||R      L||L      R||R      L|
|        ||        ||        ||        |
|        ||        ||        ||        |
----------------------------------------

Now, I could create an image like the following one have have it repeat using CSS:

--------------------
|        ||        |
|        ||        |
|L      R||R      L|
|        ||        |
|        ||        |
--------------------

However, this image is already much bigger than I want it to be, so making it 2 times larger is out of the question (especially since I plan on having a retina version too!). I thought that doing this in Javascript could be a good compromise.

Does anyone know of a JS library that can already handle this, or else point me to a resource that would give me a decent head start?

Thanks,

Tim

  • 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-14T00:50:18+00:00Added an answer on June 14, 2026 at 12:50 am

    You can do this with CSS on most browsers, via the transform property (and for older IE, a fallback filter); article here. E.g.:

    img.flipped {
        -moz-transform:    scaleX(-1);
        -o-transform:      scaleX(-1);
        -webkit-transform: scaleX(-1);
        transform:         scaleX(-1);
        filter:            FlipH;
        -ms-filter:        "FlipH";
    }
    

    Live Example (using your gravatar) | Source

    It even works back in IE6, thanks to the fallback filter. Wow. And of course, IE9 (transform is supported), Chrome, Firefox, Opera…

    Doing that for the background is likely to be a bit of a pain, probably requiring absolute positioning and a negative z-index, but…

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

Sidebar

Related Questions

I have a background on a page body that is an image which I
Hi I have created an h3 which is centered and uses a background-image and
I have a site that uses a large centered background image, which naturally loads
I have a div which currently has a static background image. I need to
I have a background UI Image which is shown whenever i touch a UIButton:
I have a .gif file which i wish to use as the background image
I have a <div> which contains a background image, the <div> sits within a
i need to set image as background in android gridview. I have code which
I have a panel with transparent background which i use to draw an image.
I have the following code which renders an image as the background for a

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.