473,804 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bold numbers in ordered lists

To get bold numbers in ordered lists, one can write

ol { font-weight: bold }
ol span { font-weight: normal }

<ol>
<li><span>..... .</span></li>
<li><span>..... .</span></li>
</ol>

Is there a better way?

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell
Aug 22 '08
33 12227
On 25 Aug, 16:50, Andreas Prilop <prilop4...@tra shmail.netwrote :
On Mon, 25 Aug 2008, Jonathan N. Little wrote:
I don't know what you mean by "semantic equivalent" - but I certainly
cannot get automatic numbering in a table.
* * content: counter(item) ": ";

In which browser?
Most, even on cellular phones.
Aug 25 '08 #11
Roy A. wrote:
On 25 Aug, 16:50, Andreas Prilop <prilop4...@tra shmail.netwrote :
>On Mon, 25 Aug 2008, Jonathan N. Little wrote:
>>>I don't know what you mean by "semantic equivalent" - but I certainly
cannot get automatic numbering in a table.
content: counter(item) ": ";
In which browser?

Most, even on cellular phones.
Not IE7 nor (I'm fairly sure) IE6.

--
Ed Mullen
http://edmullen.net
I tried sniffing Coke once, but the ice cubes froze the end of my nose.
Aug 25 '08 #12
Steve Swift wrote:
Jonathan N. Little wrote:
>Also Konqueror 3.5.8 so I assume Safari will also work.

Not IE8 beta though.
Not surprised.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Aug 25 '08 #13
On 25 Aug, 21:17, Ed Mullen <e...@edmullen. netwrote:
Roy A. wrote:
On 25 Aug, 16:50, Andreas Prilop <prilop4...@tra shmail.netwrote :
On Mon, 25 Aug 2008, Jonathan N. Little wrote:
I don't know what you mean by "semantic equivalent" - but I certainly
cannot get automatic numbering in a table.
* * content: counter(item) ": ";
In which browser?
Most, even on cellular phones.

Not IE7 nor (I'm fairly sure) IE6.
Maybe not Internet Explorer Mobile Browser either, but most of the
rest.

Aug 26 '08 #14
dorayme wrote:
Whether you use an ordered list or a table, you are conveying more or
less the same thing.

No not really. A list is a list, with a singular "linear" relationship:
start a 1, then to 2 then to 3...

Whereas a table has a "two-dimensional" relationship where the data is
organized in rank and file, row and column. Where the cross-wise
relationship is significant to the data.
That is what I meant by semantic equivalence. The
advantage of a table is much greater presentational flexibility.

Not sure how a table add more flexibility. Certainly more complexity if
you want to try layouts that deviate from the grid.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Aug 26 '08 #15
Jonathan N. Little wrote:
Not sure how a table add more flexibility. Certainly more complexity if
you want to try layouts that deviate from the grid.
Talking of lists, I wrote a CGI webpage specifically for generating
lists of instructions. It's one of the most useful pages I've ever created.

I keep lists such as:

- things I have to take on holiday
- things to do when I get a new CD (there are 13 steps)
- the clocks I have to change when we swap between GMT/BST
- the devices I have to reset after a power failure
- the passwords I have to change regularly

These lists aren't numbered (they are mostly not necessarily sequential)
but they each have a checkbox for each step, so I can keep track of
where I have reached. In this case, tables are handy for keeping the
text on the same line as the checkbox.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Aug 26 '08 #16
In article <ba************ *************** @NAXS.COM>,
"Jonathan N. Little" <lw*****@centra l.netwrote:
dorayme wrote:
Whether you use an ordered list or a table, you are conveying more or
less the same thing.


No not really. A list is a list, with a singular "linear" relationship:
start a 1, then to 2 then to 3...
Not really. The relationship between the number of an ordered list item
and the list item itself is one relationship you miss considering. Not
even on your radar it seems. Pity. I admire some of your technical
fireworks. You seem content with dismissive elementary spiels where I am
concerned. Perhaps I deserve nothing better; I can't quite get myself to
believe this yet but maybe I will and should prepare for that day by
boning up on the quickest way to get to The Gap at Sydney Heads... <g>
That is what I meant by semantic equivalence. The
advantage of a table is much greater presentational flexibility.

Not sure how a table add more flexibility.
You forgotten already how you proposed to the OP a smart way of putting
in ordered numbers into a table col with styling... showing one aspect
of flexibility not so easily done with an OL? And there is more that can
be said here but perhaps I should stop, you are unlikely to agree or
even comprehend the least thing I say. Good luck to you Jonathan...

--
dorayme
Aug 26 '08 #17
dorayme wrote:
In article <ba************ *************** @NAXS.COM>,
"Jonathan N. Little" <lw*****@centra l.netwrote:
>dorayme wrote:
>>Whether you use an ordered list or a table, you are conveying more or
less the same thing.

No not really. A list is a list, with a singular "linear" relationship:
start a 1, then to 2 then to 3...

Not really. The relationship between the number of an ordered list item
and the list item itself is one relationship you miss considering.
I would argue that the ordinal numbers is a list are not at all the same
as the data within a table. It is not really the "data" makes little
difference if

1. fee
2. fie
3. foe
4. fum

A) fee
B) fie
C) foe
D) fum

or implied:

* fee
* fie
* foe
* fum

Where as the first column of a table's data is relevant and the
relationship by row and column is significant.

fin | fish | water
foot | dog | land
wing | bird | air

With or without ordinal numbers a tabular data within has a significance
with respect to row column position. It is that organizational
relationship that differentiates it from a list.

Not
even on your radar it seems. Pity. I admire some of your technical
fireworks. You seem content with dismissive elementary spiels where I am
concerned. Perhaps I deserve nothing better; I can't quite get myself to
believe this yet but maybe I will and should prepare for that day by
boning up on the quickest way to get to The Gap at Sydney Heads... <g>
?
>>That is what I meant by semantic equivalence. The
advantage of a table is much greater presentational flexibility.

Not sure how a table add more flexibility.

You forgotten already how you proposed to the OP a smart way of putting
in ordered numbers into a table col with styling... showing one aspect
of flexibility not so easily done with an OL?
What do you mean? I employed the same method using CSS counters. The
flexibly had to do with CSS, the elements involved where irrelevant.

My point was the "features" of a table does not simplify anything. How is:

<table>
<tr><td>fee</td></tr>
<tr><td>fie</td></tr>
<tr><td>foe</td></tr>
<tr><td>fum</td></tr>
</table>
easier than:

<ol>
<li>fee</li>
<li>fie</li>
<li>foe</li>
<li>fum</li>
</ol>

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Aug 26 '08 #18
In article <a9************ **************@ NAXS.COM>,
"Jonathan N. Little" <lw*****@centra l.netwrote:
dorayme wrote:
In article <ba************ *************** @NAXS.COM>,
"Jonathan N. Little" <lw*****@centra l.netwrote:
dorayme wrote:
[things... that I have no time to seriously answer this morning. Take
that as a mark of respect to your post. Not always something I have.]
I will answer your post later. Obviously, I am not going to get you to
see what I mean by semantic equivalence between an ordered list and a 2
col table easily, you putting up every kind of block from seeing what is
essentially a simple observation of mine.

As with many simple observations as well as not so simple ones, serious
errors can creep in and I would be interested to know if there are such
in my idea. I am saying it is an open question whether I am correct and
I have to identify why (apart from my extreme unpopularity) I only ever
have gotten blank stares online when mentioning it.

There may be some legitimate and respectable way you guys are seeing
things that I am missing. But I never even get the time of day on it.
The OP asks me what I meant. I said. And I gave a link to further
discussion. But the person I address simply does not know what to make
of it, so I better think of a better way of explaining it. Even Ben C
politely declined to discuss it once, and if anyone can understand
anything it is Ben.

Quite often, in my experience, if an idea is so coldly received, it is
because it is communicated in a form that makes it sound simply false or
crazy, there being no handle for the receiver to intelligently discuss
it. Hence your first dismissive response where you repeated so
innocently that a list was a list, one thing after another and a table
was a table, things relating blah blah. I do not blame you.

And I do not blame myself for delaying my response. It was much easier
saying the above than dealing with your arguments and questions. It is
not my fault that clients conspire with each other - I did not know any
of mine knew each other - to land work on my desk at the same time
instead of a gentle staged workload throughout the year! Everyone
conspires against me, I am used to it. <g>

--
dorayme
Aug 26 '08 #19
dorayme wrote:
In article <a9************ **************@ NAXS.COM>,
"Jonathan N. Little" <lw*****@centra l.netwrote:
>dorayme wrote:
>>In article <ba************ *************** @NAXS.COM>,
"Jonathan N. Little" <lw*****@centra l.netwrote:

dorayme wrote:
[things... that I have no time to seriously answer this morning. Take
that as a mark of respect to your post. Not always something I have.]
Ah thanks, um, I think...
>

I will answer your post later. Obviously, I am not going to get you to
see what I mean by semantic equivalence between an ordered list and a 2
col table easily, you putting up every kind of block from seeing what is
essentially a simple observation of mine.
Maybe because they are semantically different might have something to do
with it.
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Aug 27 '08 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2858
by: Stanimir Stamenkov | last post by:
So if the 'type' attribute of the OL element is deprecated and authors should rely only on stylesheets how one could use a reference (as clear text) in the content to a particular list element? Suppose I have: <ol type="1" id="main"> <li>baba</li> <li>lele <ol type="a" id="ext">
2
1592
by: Ryan Ternier | last post by:
I'm currently run into a snag on one of my projects. We need to create an ordered list (Mutli levels). Ie: 1. Some Title ....A....Something here ....B....Something Else 2. Another Title
1
1477
by: m.k.ball | last post by:
What is the best way to achieve alphabetically ordered lists that will index phrases starting with 'The' as if the word was at the end rather than the start of the phrase? Michael
2
3231
by: tgscott | last post by:
Hi, By default numbers in ordered lists are right aligned, like this... 1. Item 2. Item .... 10. Item 11. Item
14
4027
by: etal | last post by:
Here's an algorithm question: How should I efficiently merge a collection of mostly similar lists, with different lengths and arbitrary contents, while eliminating duplicates and preserving order as much as possible? My code: def merge_to_unique(sources): """Merge the unique elements from each list in sources into new list.
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10341
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7634
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.