I'm struggling with the CSS counter mechanism(s)

  • Thread starter Thread starter s3a
  • Start date Start date
  • Tags Tags
    Counter Css
AI Thread Summary
The discussion centers on difficulties with CSS counters, specifically in maintaining the numbering of an ordered list across multiple rows. The user has shared their HTML and CSS code but is facing issues with duplicated numbering in table cells. They express confusion over the correct implementation of CSS counters, particularly regarding naming conventions and incrementing values. Despite consulting various resources, the user is still unable to achieve the desired outcome. Assistance is sought to clarify the correct usage of CSS counters to resolve the numbering issue.
s3a
Messages
814
Reaction score
8

Homework Statement


There's a visual representation of what I am aiming for, in Question 1's Figure 2.:
https://www.docdroid.net/P6VZNB1/soe...df.html#page=3

Homework Equations


https://www.w3schools.com/CSSref/pr_gen_counter-increment.asp

The Attempt at a Solution


Hello to everyone who's reading this.
icon_smile.gif


I looked at various websites, including several YouTube videos, but still I'm really struggling with CSS counter stuff. Basically, all I am trying to do is to make the numbering of an ordered list continue when the ordered list goes from row n to row n+1.

The following is my HTML syntax.:
http://pastebin.com/hw8rmUWB

The following is my CSS syntax, where the last three selectors are what I'm struggling with (as indicated by the comment).:
http://pastebin.com/cYFynxAs

Could someone please help me figure out why the numbering is showing twice in each table cell (despite the CSS incrementation seemingly working semi-correctly)? It seems like the CSS is creating some different numbering, rather than modifying the default numbering of unordered lists.

Any help in figuring out why what I am trying to accomplish is not working would be GREATLY appreciated!
 
Last edited by a moderator:
Physics news on Phys.org
Back
Top