View Single Post
Old 08-27-2017, 09:40 PM   #18
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,099
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by WS64 View Post
No idea why one would need incremental IDs...
I use this plugin to add incremental IDs to headers, and in a second search and replace step I'll number my headlines (and remove the IDs).
I doubt the plugin was made for that, but it works for me that way
This is how I use it mostly as well...especially when I am trying to put a chapter number or something into the toc and it doesn't have one originally....

BUT.... It is certainly possible to use an incremented ID. For example: if you have lots of images and want to put specific css for each individual image...then give the ID an incremented name and style it to #img01, #img02, #img03, etc.

Code:
img       {width:50%}
#img01 {max-width:300px}
#img02 {max-width:400px}
#img03 {max-width:525px}

<body>
<div id="img01"><img alt="" src="../Images/img1.jpg" /></div>
<div id="img02"><img alt="" src="../Images/img2.jpg" /></div>
<div id="img03"><img alt="" src="../Images/img3.jpg" /></div>
</body>

edit: I meant ID when I typed class...

Last edited by Turtle91; 08-28-2017 at 11:38 PM.
Turtle91 is offline   Reply With Quote