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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:06:13+00:00 2026-05-15T02:06:13+00:00

Can you bottom repeat a sprite background where I want the sprite to be

  • 0

Can you bottom repeat a sprite background where I want the sprite to be set of the background on the bottom of the div. I have this:

.statistics-wrap {
    margin-top: 10px;
    background: url(../img/bg-sprite.png) repeat-x 0 -306px bottom;
    overflow: hidden;
    border: 1px #BEE4EA solid;
    border-radius: 5px;
    -moz-border-radius: 5px;
    padding: 10px;
}

It doesn’t seem to appear, if I remove the bottom it will appear but it is set in the background repeating horizontally at the top of the div which I want it to repeat at the bottom.

Is it possible?

  • 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-15T02:06:14+00:00Added an answer on May 15, 2026 at 2:06 am

    I see something wrong with your background CSS property… I’ll break it down

    background:                   /* property name */
        url(../img/bg-sprite.png) /* background-image */
        repeat-x                  /* background-repeat */
        0 -306px                  /* background-position */
        bottom                    /* ummm... what?! */
    

    … so the browser can’t parse your CSS property. If you load this baby in Firefox and check out the Error Console (‘Tools’>’Error Console’) you’ll see something along the lines of:

    Error in parsing value for
    ‘background’. Declaration dropped.

    So I know what you’re thinking… just remove ‘bottom’, right? But what happens then…

    background:                   /* property name */
        url(../img/bg-sprite.png) /* background-image */
        repeat-x                  /* background-repeat */
        /* background-position...               */
         0                        /* x-position */
         -306px                   /* y-position */
    

    Now your background image is offset by -306px, which may not be at the bottom of the <div>. If you’re really unlucky it’ll even be way past the bottom of the <div> and noone can see your background image.

    So try something more like this…

    background: url(../img/bg-sprite.png) repeat-x 0px bottom
    

    or…

    background: url(../img/bg-sprite.png) repeat-x -306px bottom
    

    … depending on why you had that -306px there in the first place.

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

Sidebar

Related Questions

I want to repeat a background-image for a div vertically till the bottom of
I have a <div>&nbsp;</div> which has the following styles: background-position: 0 bottom; background-repeat: no-repeat;
Can you have cellpadding or spacing just on the top/ bottom as opposed to
I have 2 layer is top and bottom on my program how can i
I have a bottom toolbar like this: <div style=float:left;width:100%;position:fixed;z-index:210;bottom:5px;> <div style=float:left;width:928px;border:1px solid #000;background:url('/images/noise-bg.jpg') repeat-x;height:26px;padding:5px;>
I have the following code: <div style=height: 120px; background: none repeat scroll 0% 0%
You can skip to the bottom line if you don't care about the background:
Quote from Head first html: You can add padding to the top and bottom
I was originally using the following code: background-image: url(../images/tabbottom.gif); background-repeat: no-repeat; background-position: left bottom;
I have a CSS like this ul { list-style-image:url(images/bulletArrow.gif); } ul li { background:

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.