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

  • Thread starter Thread starter s3a
  • Start date Start date
  • Tags Tags
    Counter Css
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
s3a
Messages
828
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