Thread: HTML sub lists
View Single Post
 
Old 08-31-2023, 03:27 PM
Journeyman Journeyman is offline Windows 10 Office 2019
Novice
 
Join Date: Feb 2023
Posts: 15
Journeyman is on a distinguished road
Default HTML sub lists

Hi all,

I'm plopping this question in misc, since I'm not sure where else to ask.

My project is to transfer *.HTM files into word. the feature works well, and is understood. Im using classes to tell the word side what styles to use.

My question is in relation to the webbrowser side,

How can I use HTML to describe a list | sub list | sub list, for example

Code:
1. My List 1
    1.1 Sub List 1
    1.2 Sub List 1
    1.3 Sub List 1
2. My List 2
    2.1 Sub List 2
    2.2 Sub List 2
    2.3 Sub List 2
...etc
This doesn't do it naturally.
Code:
<OL>
<Li>My List 1</Li>
<OL>
<Li>Sub List 1</Li>
</OL></OL>
I've read that you can do something in the <OL Something=Something>, but I have no idea what that would be.

Alternatively, I've read that you can do something with CSS, but I have no idea how to to apply a CSS to a webbrowser - and google isn't being very helpful.

Any hints and tips would be appreciated.

Cheers
Reply With Quote