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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:34:26+00:00 2026-06-02T07:34:26+00:00

This would appear to be super simple, but for some reason I am struggling

  • 0

This would appear to be super simple, but for some reason I am struggling with this. I have some links that control a jQuery content slider. The links need to be centered at the bottom of the slider. The text of the links are set via the jQuery plugin I am using so I just use text-indent: -9999px to hide it and display a background image instead. Each link is set to block and 10px wide and tall. However I cannot get them to be centered within a div. Here’s a little diagram of what I want to do.

|                                           • • •                                         |

The 3 bullets represent the links I want to center. I want them to be centered whether or not I have 2 links or 10 links. If I had a set number of links this would probably be a lot easier as I could create a parent with a fixed width and use margin:0 auto; on it.

Here’s my code so far…

HTML..

<div id="pager">
  <a href="#slide1">1</a>
  <a href="#slide2">2</a>
  <a href="#slide3">3</a>
</div>

CSS..

#pager {float:left; width:100%; display: block; text-align: center;}

#pager a {display:block; width:10px; height:10px; float:left; background-image: url(img/pager-off.gif); text-indent: -9999px; background-color: red; background-repeat: no-repeat;}
  • 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-02T07:34:27+00:00Added an answer on June 2, 2026 at 7:34 am

    check out this jsfiddle

    http://jsfiddle.net/h2r6c/

    I added a margin to the links, just so see where they started and ended.
    Apart from that, get rid of the float:left in your link CSS and you’re good, provided they aren’t block level. They need to be display:inline-block to be side-by-side like you want.

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

Sidebar

Related Questions

I would like the navigation links on this page to each appear on their
This would be my issue I have a drop down that's not displaying fully.
I have this code and would like it to appear on the page of
I guess this is just a simple question (I’m such a noob…) I have
I have a matrix that has 20 rows and 51 columns. I would like
I have some code that seems to execute improperly when it is serialized and
This XAML makes text fade in when it appears. I would like to put
This would be a question for anyone who has code in the App_Code folder
This would be very handy as typecasting gets boring fast.
This would seem to be the case in Firefox 3.5+, there I can instantiate

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.