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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:10:01+00:00 2026-05-29T06:10:01+00:00

I currently have an image repeating on y (e.g. background: url() repeat-y ), but

  • 0

I currently have an image repeating on y (e.g. background: url() repeat-y), but I want it to start 20px down from where the div starts.

how do I do that?

  • 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-29T06:10:01+00:00Added an answer on May 29, 2026 at 6:10 am

    Maybe you should use :after or :before for this, because there’s no need to add extra markup in your HTML. Like this:

    .container {
      height: 400px;
      background: red;
      position: relative;
      width: 400px;
    }
    .container:after {
      content: "";
      position: absolute;
      top: 20px;
      left: 0;
      right: 0;
      bottom: 0;
      background: url(https://picsum.photos/400/200) repeat-y;
    }
    h1 {
      position: relative;
      color: green;
      font-size: 30px;
      z-index: 1;
    }
    <div class="container">
      <h1>Hello world</h1>
    </div>

    It works in IE8 & above. For IE7 or IE6 you can give extra DIV for this.

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

Sidebar

Related Questions

I currently have an image that changes when you click it but when I
I receive a list of image URLs and currently I have several hidden img
I have a texture with a 3x9 repeating section. I don't want to store
I have an image generator which would benefit from running in threads. I am
I have a number of headings and in the background of each I want
I have an animation (currently 30 different images repeating) and I wish to add
I'm tinkering with Silverlight 2.0. I have some images, which I currently have a
Currently we have thousands of Microsoft Word files, Excel files, PDF's, images etc stored
We have a CMS where people can upload images. We currently don't offer a
I have a sample RSS from Amazon. While the RSS displays correctly with images

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.