#layout

dredmorbius@joindiaspora.com

Hierarchical section numbering in HTML via CSS

@woozle@hey.iseeamess.com asked this on G+

Hierarchical numbering should be doable via CSS, though I'm not positive I'd know how without messing with it. I've asked elsewhere and done some searching, the following appears to work for section numbers, if that's what you're looking for.

http://www.html5database.com/getexampe.php?example=263

My question for either list or sections here:

http://redd.it/22ym6l

The ID numbering (effectively an anchor property) would have to be generated by scripts, probably as a hash of the base page and the section text. This would persist across re-orderings, but if you edited the section title, the hash would change.

MediaWiki already allows for in-page references to content:

http://wiki.hypertwins.org/Woozle#Introduction_to_Woozles

... which should really address your ID requirement.

#html #css #layout #styling #hierarchy