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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:34:23+00:00 2026-06-04T20:34:23+00:00

I have been searching around for quite a while on ways to do this,

  • 0

I have been searching around for quite a while on ways to do this, and I’m beginning to think it’s not doable. I can’t say I’m an expert in html or CSS, but I have done a lot of research and found no tutorial for this specific problem.

I am coding a software user’s guide to be posted online. The guide will include screenshots of the software, with figure numbers. The original code (I’m not the first on this project) simply hardcodes in the numbers of each image, which becomes more and more tedious as more information is added in.

I know there is a way to simply add in a new image and then tag the caption to include an automatically incrementing figure number. This would be very helpful, for if a new figure is added in, the numbers automatically change in all of the figures after the new one.

IF that were the only facet of the problem, I would simply use a CSS counter and be done with it. However, I also want to be able to reference specific figures in the text of the guide. My question is this: Is there a way to do this in CSS?

An example of text within the guide would be “Figure n shows the dialog box for customizing x.” Is there a way to reference the nth figure in the guide without hardcoding the numbers?

If this is not possible in CSS, is there another language that can do it?

Edit: To clarify: The figures themselves would be labeled consecutively. But if I wanted to, within my text, refer to Figure 3, for example, that could be anywhere.

Edit 2: I have tried a javascript implementation using arrays. However, now it seems that some versions of Internet Explorer refuse to show the script portions of my code.

I am using the <script></script> tags within the body of my document, calling a javascript function located in the head. I know the syntax must be right because firefox and google chrome both load the page just fine. Is this simply IE being picky about something? (I checked, it’s not my security settings).

  • 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-04T20:34:25+00:00Added an answer on June 4, 2026 at 8:34 pm

    Thing is, referring to things by their page index (incrementing) and by some figure number you maintain (also incrementing) are two identical solutions.

    Actual problem: Maintaining the figure list with a sequence of ordered numeric identifiers becomes more difficult the longer a document becomes.

    Solution: Give figures names, not numbers, and generate a number for display to the user. This gives ordered numbering to the user and allows you to reference figures with memorable names, but does not require you to reorder or modify figure numbers after every edit. Here’s a quick example using jQuery:

    <h2>How to add a contact</h2>
    <img id="add-contact" class="figure" src="figures/add-contact.png" />
    <p><a href="#add-contact">This screenshot</a> shows the location of the Add Contact button.</p>
    
    <script type="text/javascript">
       $(function() {
         var figNum = 0;
         $(".figure").each(function() {
           figNum++;
           $("a[href='#"+$(this).attr("id")+"']").append(" (figure "+figNum+")");
         });
       });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been searching around for an answer to this but I can't seem
Have been searching around and can't find the answer to this. I'm just wondering
I have been searching around using Google but I can't find an answer to
I have been searching around for a solution for quite some time, hoping someone
I have been searching around and it looks like this question has been asked
I have been searching around for answers, but I can't seem to find anything.
I have been searching around Google and this site to find answer on my
I have been searching around and cant find an answer... not sure if there
I have been searching around for a while, and was wondering: is there an
I have been searching around for this question but cant seem to find it.

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.