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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:41:50+00:00 2026-06-09T15:41:50+00:00

So, this is an odd one… I’ve got basic pagination code: <div class=pagination> <a

  • 0

So, this is an odd one…

I’ve got basic pagination code:

<div class="pagination">
    <a href="#" class="prev">&lt;</a> <a href="#">1</a> <a class="current">2</a> <a href="#">3</a> <a href="#" class="next">&gt;</a>
</div>

And I want it all centred, so I’m using inline-block on the anchor tags. Simple enough, stripped down CSS code:

.pagination{text-align:center; margin-bottom:20px;}
.pagination > a{display:inline-block; vertical-align:middle; margin:0 2px 0 1px;}
.ie7 .pagination > a{zoom:1;}
.pagination .next,
.pagination .prev{width:26px; height:38px; text-indent:-9999px; overflow:hidden;
background:url(../images/page-arrows.png) no-repeat;}
.pagination a{width:37px; height:31px; line-height:32px; font-size:15px; font-weight:bold; color:#7e7e7e;
background:url(../images/page-numbers.png) left top no-repeat;}

Problem is that, NOTHING is displaying in IE7 (at least IE7-mode of IE9). I’m well aware of the display-inline bugs that IE7 has, but those only apply to elements that aren’t inline by default. I’ve added in a zoom:1 anyway though for good measure.

If I put a background colour on the .pagination wrapper, that wrapper does indeed show up with the background colour, but the elements inside just aren’t showing!

I’ve tried the usual IE ‘fixes’ …position:relative, zoom:1, height:1% on any and every element, but not luck.

What am I missing?!

  • 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-09T15:41:52+00:00Added an answer on June 9, 2026 at 3:41 pm

    After some experimenting in JSFiddle I’ve managed to discover that the problem relates to this particular rule

    .pagination .prev {text-indent:-9999px; } 
    

    Disabling this fixes the issue but is not ideal as you would then have the text charecter appear on top of your background images.

    Interestingly enough your .next does not cause the same issue. with that in mind added an &nbsp; to either side of your paging control (so your center alignment dosnt get skewed) and it seems to of fixed the problem.

    <div class="pagination"> 
        &nbsp; 
        <a href="#" class="prev">&lt;</a> <a href="#">1</a> <a class="current">2</a> <a href="#">3</a> <a href="#" class="next">&gt;</a> 
        &nbsp;
    </div>
    

    JSFiddle available here (background images replaced with solid colors for obvious reasons)

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

Sidebar

Related Questions

This is an odd one. Note this is cut down example code, and misses
This is an odd one. I added a file to a project, thought I
This is a very odd one and I'm not sure how to proceed. Basically,
I've got this odd problem with jQuery. I'm trying to let the change of
This is an odd one, not one I've come across before. My project complies
This is an odd one, for whatever reason, getting the children of an element
Odd one this... The following command returns what I would expect when I run
Odd one this. I am using NHibernate with one website. I have configured log4net
Alright so this is an odd one... I have an application built in ColdFusion
Ok, this is an odd one for some reason. UPDATE is updating fields, but

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.