1 reply [Last post]
malc__b's picture
Last seen: 1 year 12 weeks ago
Timezone: GMT+1
Joined: 2021-04-08
Posts: 1
Points: 2

Very new to CSS but working away at something at the minute. I've an HTML document with custom markup and the list types are giving me grief. There are two types:

<list type="simple"><item> cxxxxxx</item></list>


<list type="numbered"><item> cxxxxxx</item></list>

Other than the attribute there is no difference in the HTML doc but the numbered list should show as an ol would, with the simple being ul. I thought to substituting in the file to swap the simple for <ul> and numbered for <ol> but I wouldn't be able to get the closing tags correct.

So I'm hoping CSS can come to my rescue. Any clever ideas on how to tackle this? THanks in advance.

Verschwindende's picture
Last seen: 6 weeks 13 hours ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2050
Points: 2282

I have no idea what you are

I have no idea what you are after. Please restate the question.

If you can change to <ul> or <ol> why can't you change the closing tags as well?

Regardless, you should be able to target the list[type=numbered] with list-style-type, counter-reset and counter-increment.