473,721 Members | 1,999 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

numbered list > 1000

How may I generate a numbered list (using <ol><li>, etc), which contains
more than 1000 elements? My list is ok till 999, then it continues with
000, 001, 002, etc.

Thanks for a tip

Max
Jul 20 '05 #1
5 2808
Max Bentz <ma*********@ya hoo.de> wrote:
How may I generate a numbered list (using <ol><li>, etc), which
contains more than 1000 elements? My list is ok till 999, then it
continues with 000, 001, 002, etc.


Such a large list is of questionable usefulness on the Web. Would it be
better to make its content available via a query interface, so that the
user can specify the range he wants?

There are problems with large numbers as list item numbers,
irrespective of the number of items. In fact, more than two digits
causes problems in some browsers, and with more than four, most
browsers have problems. There's nothing you can do about this browser
deficiency in HTML, apart from using the obvious workaround of using
a ul list or a table and putting the numbers into the page content,
into the items or cells.

In CSS, you can suggest a fix, e.g.
<ol style="margin-left:4em">
since the problem is really cause by too little horizontal space on the
left of the list items. Browsers probably count correctly, but e.g. the
initial "1" may get dropped out, or become invisible, in item numbers
like "1000". Setting the left margin to 4em should suffice for about
eight digits.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #2
Hi ,

thanks a lot, that fixed my problem!!

Yes, I am aware of the questionable usefulness on the Web of such large
liste. The only reason why I need it, is for a php-querry of a
mysql-database (one querry shall show the complete database-list, which
unfortunately is bigger than 1000).

But I am very happy with that workaround, you suggested, it works
perfect with IE and Mozilla, and thats all I need. Thanks again!

Max

On 17.01.2004 20:00 Jukka K. Korpela wrote:
Max Bentz <ma*********@ya hoo.de> wrote:
How may I generate a numbered list (using <ol><li>, etc), which
contains more than 1000 elements? My list is ok till 999, then it
continues with 000, 001, 002, etc.


Such a large list is of questionable usefulness on the Web. Would it be
better to make its content available via a query interface, so that the
user can specify the range he wants?

There are problems with large numbers as list item numbers,
irrespective of the number of items. In fact, more than two digits
causes problems in some browsers, and with more than four, most
browsers have problems. There's nothing you can do about this browser
deficiency in HTML, apart from using the obvious workaround of using
a ul list or a table and putting the numbers into the page content,
into the items or cells.

In CSS, you can suggest a fix, e.g.
<ol style="margin-left:4em">
since the problem is really cause by too little horizontal space on the
left of the list items. Browsers probably count correctly, but e.g. the
initial "1" may get dropped out, or become invisible, in item numbers
like "1000". Setting the left margin to 4em should suffice for about
eight digits.

Jul 20 '05 #3
It seems "Max Bentz" wrote in comp.infosystem s.www.authoring.html in
article <bu************ @ID-111556.news.uni-berlin.de>:
thanks a lot, that fixed my problem!!


What did?

makes it harder to follow discussions.
before the material you're commenting on, it
When you put your comments

http://oakroadsystems.com/genl/unice.htm#upside

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #4
On Sat, 17 Jan 2004 19:00:51 +0000 (UTC), "Jukka K. Korpela"
<jk******@cs.tu t.fi> wrote:
There are problems with large numbers as list item numbers,
irrespective of the number of items. In fact, more than two digits
causes problems in some browsers,


Do you happen to know which? I have a list of over 100 items on one of
my pages (for fairly good reasons) and I'd like to know if I'm screwing
anyone up. (If it's WebTV or Netscape 2, I'm not going to worry
overmuch.)

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #5
Stephen Poley <sb************ ******@xs4all.n l> wrote:
There are problems with large numbers as list item numbers,
irrespectiv e of the number of items. In fact, more than two digits
causes problems in some browsers,


Do you happen to know which? I have a list of over 100 items on one
of my pages (for fairly good reasons) and I'd like to know if I'm
screwing anyone up.


My IE 6 (Win98) cuts off the left part part of first digit if I have
e.g. <li value="200">. If the first digit is "1", it seems to get
displayed OK. But this may depend on the font.

I wouldn't worry much about it, though, since setting margin-left to a
reasonable width will mostly fix it. (I wrote "mostly" since there
might be browsers that have this problem and that let the user switch
off stylesheets.)

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #6

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

Similar topics

23
40634
by: Fuzzyman | last post by:
Pythons internal 'pointers' system is certainly causing me a few headaches..... When I want to copy the contents of a variable I find it impossible to know whether I've copied the contents *or* just created a new pointer to the original value.... For example I wanted to initialize a list of empty lists.... a=, , , , ] I thought there has to be a *really* easy way of doing it - after a
16
2462
by: StenKoll | last post by:
Help needed in order to create a register of stocks in a company. In accordance with local laws I need to give each individual share a number. I have accomplished this by establishing three tables (se below) then I run a query giving me a running total, which give me the first stock in the batch purchased by an individual, then I use this number and add the number of shares in order to find the number of the individuals' last share. So...
10
15129
by: Kent | last post by:
Hi! I want to store data (of enemys in a game) as a linked list, each node will look something like the following: struct node { double x,y; // x and y position coordinates struct enemy *enemydata; // Holds information about an enemy (in a game) // Its a double linked list node
18
1895
by: Sean | last post by:
I have been using List(of String) when I could easily be using a string array instead. Is it still considered best practice to use Generic list of string rather then a string array? Thanks
6
13915
by: Jeff.Boeker | last post by:
I'm learning a lesson in how I need to be more specific :) In C++ I can resize a vector and it will allocate memory and it will call the default constructor if necessary (or I can supply an instance for the copy constructor). For example: C++ vector<classvClass;
16
2602
by: Michael M. | last post by:
How to find the longst element list of lists? I think, there should be an easier way then this: s1 = s2 = s3 = if len(s1) >= len(s2) and len(s1) >= len(s3): sx1=s1 ## s1 ist längster
6
1499
by: =?iso-8859-2?Q?K=F8i=B9tof_=AEelechovski?= | last post by:
At <http://jibbering.com/faq/index.html#FAQ4_41> IS Microsoft introduced a shortcut that can be used to reference elements which include an ID attribute where the ID becomes a global variable. SHOULD BE Microsoft introduced a shortcut that can be used to reference elements THAT ARE NOT FORM CONTROLS WITHIN A FORM ELEMENT which include an ID attribute where the ID becomes A PROPERTY OF THE GLOBAL WINDOW OBJECT and the scope of the window...
21
2015
by: py_genetic | last post by:
Hello, I'm importing large text files of data using csv. I would like to add some more auto sensing abilities. I'm considing sampling the data file and doing some fuzzy logic scoring on the attributes (colls in a data base/ csv file, eg. height weight income etc.) to determine the most efficient 'type' to convert the attribute coll into for further processing and efficient storage... Example row from sampled file data: , ....]
12
2448
by: Mark S. | last post by:
Hello, The app in question is lives on a Windows 2003 server with .NET 2.0 running IIS 6. The page of the app in question processes 2000 get requests a second during peak loads. The app uses a Static Object. In this object is a generic List<String>. For every page request this list is looped over only reading not writing each value.
0
9227
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...
0
9077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8019
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6676
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
4497
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4761
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3202
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
2588
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2137
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.