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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:50:06+00:00 2026-05-23T22:50:06+00:00

I am trying to setup a arrow navigation where I have a next and

  • 0

I am trying to setup a arrow navigation where I have a next and previous button.
Needs to be supported in IE 7 and up.

For the next I want the background image to show to the right of the next text.
Then of the previous button I want the text to show to the left side of the previous text.
I thought this would be easy but I just spent 2 hours on it.

Anyone can help with this before I go crazy.

<span class="next">
<a href="#">Next Month</a>
August
</span>


<span class="prev">
<a href="#">Previous Month</a>
June
</span>

In my css I have this for the left button and it works great.

.prev a, .next a {
    background: url("sprite.png") no-repeat scroll -200px -5px transparent;
    display: inline-block;
    height: 25px;
    text-decoration: none;
    text-indent: -9999em;
 }

.prev {
  float: left; 
}

.next {
  float: right; 
}

.next a {
   background-position: -200px -18px; 
}
  • 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-23T22:50:07+00:00Added an answer on May 23, 2026 at 10:50 pm

    @chapsterj; first span is an inline element so, define display:block in his css . Second there is not need for text-indent & Third you can do it without extra span tag . Do like this

    <a href="#" class="next">Next Month</a>
    <a href="#" class="prev">Previous Month</a>
    

    css:

    a.prev, a.next{
        background: url("sprite.png") no-repeat scroll -200px -5px transparent;
        display:block;
        height: 25px;
        text-decoration: none;
     }
    
    .prev {
      float: left;
      padding-right:40px; 
    }
    
    .next{
       background-position: -200px -18px; 
       float: right;
       padding-left:40px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to setup a simple has_many :through => association. I have 3 models.
I'm trying to setup a loop in Wordpress that will show all posts from
Trying to setup a simple Thread/Poll table mapping. Here is what I have: Threads
Trying to setup plone2pdf in Plone 4. I have downloaded the Plone2pdf archive, extracted
im trying to setup two listeners for one button. Here is my code: This
iam trying to setup an little search-engine for my website. I want to add
Been trying to setup my Facebook app which I want to use for Logins
I'm trying to work with a jQuery script I found at http://marcgrabanski.com/articles/scrollto-next-article-button-jquery that allows
im trying to setup sqlite as a secondary adapter and have run into a
I am trying to setup my application to use Spring and also an image

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.