473,379 Members | 1,243 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

<ol> Lists in HTML

Hi

I just wanted to know if you are using <ol> tags in HTML can you
specify which number to start at. E.g

Instead of

1. blad bla
2. bla bla

I want it to start of at.

5. bla bla
6. bala.

I have 2 columns,the first <td> I want one to go from 1 - 4 and
another <td> next to it to take points 5 - 8.

If the above is not possible, can anyone suggest a way to make it look
similar, ie the overflowing lines are tabbed in and don't flow under
the bullet.???

Thanks

LC
Jul 20 '05 #1
2 1630
li*************@dragonphly.com (Lindsey) wrote:
I just wanted to know if you are using <ol> tags in HTML can you
specify which number to start at.
Yes, e.g. <ol start="5">. Beware that there are problems in rendering
if you use numbers with more than two digits (you should set
margin-left for the ol element in CSS then).

There is no CSS counterpart for the start="..." attribute (except in
theory via marker properties, counters and generated content)
I have 2 columns,the first <td> I want one to go from 1 - 4 and
another <td> next to it to take points 5 - 8.
Oh... that's a different issue. I don't think it's a good idea, since
people naturally read rowwise on the Web.
If the above is not possible, can anyone suggest a way to make it
look similar, ie the overflowing lines are tabbed in and don't flow
under the bullet.???


I don't think so. Netscape's <multicol> might have done that, but it
only worked in Netscape 4 - though it surely wasn't among the worst
ideas they invented.

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

Jul 20 '05 #2
"Jukka K. Korpela" <jk******@cs.tut.fi> wrote in message news:<Xn*****************************@193.229.0.31 >...
li*************@dragonphly.com (Lindsey) wrote:
I just wanted to know if you are using <ol> tags in HTML can you
specify which number to start at.


Yes, e.g. <ol start="5">. Beware that there are problems in rendering
if you use numbers with more than two digits (you should set
margin-left for the ol element in CSS then).

Cheers works a treat!
Jul 20 '05 #3

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

Similar topics

2
by: Gregor Horvath | last post by:
Hi, Before I reinvent the wheel I`d like to ask if someone has done this before since I did not find an advice at Google. The goal is to create a dynamic Tree View in HTML. Say I have a...
4
by: Timo Nentwig | last post by:
Hi! Is the following possible?         1. one   3. three         2. two   4. four And if so, how? If not, an offset attribute should be added to the next version of XHTML:
8
by: Michael | last post by:
This is a two-part question to which I haven't been able to find an answer anywhere else. 1. Is it possible to format the bullet/number character of the <li>? In my styles sheet, I have the <li>...
2
by: Novice | last post by:
Hi all, I'm wondering if there is an easy way to create ordered lists of different types - for example I can get the following: 1. one 2. two from: <ol> <li> one <li> two </ol>
1
by: Dan Jacobson | last post by:
How does one get "5.6.4" with <OL>..<OL>..<OL>..<LI>?, at most I can get is "4". Oh, on http://www.w3.org/TR/REC-CSS1, I see they've hardwired it into the page, so one must use some preprocessor....
4
by: maya | last post by:
I need each paragr (i.e., each <li>) to have a blank line afterwards, like this.. 1. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore...
1
by: jasonchan | last post by:
How do you align <ol> and <ul> elements when they are contained in a floated box? Here is my website: http://geocities.com/jasonchan483/ Here's my problem. The markers of the lists are...
3
by: Man-wai Chang | last post by:
A 2 columns x 10 rows matrix input form <ul> <li> <ul> <li>item name 1 <li><input type="textbox" name="input_col_1_row_1"> <li><input type="textbox" name="input_col_1_row_2"> </ul> <li>
2
by: Shahid | last post by:
Hi, I am parsing an .HTML file that contains following example code: <div> <p class="html_preformatted" awml:style="HTML Preformatted" dir="ltr" style="text-align:left"><span...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.