HighDots Forums  

Can the numbers in a list be left-aligned?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Can the numbers in a list be left-aligned? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dave Rado
 
Posts: n/a

Default Can the numbers in a list be left-aligned? - 12-27-2007 , 04:21 AM






Is it possible with css to make the numbers in a numbered list left-
aligned (as in this mock-up where I've used 2-column tables to achieve
it: http://tinyurl.com/yv6njd - as opposed to the default of right-
aligned numbers as in this mock-up: http://tinyurl.com/2dxer5)?

And if it *is* possible, can one define the size of the hanging
indent, so that it looks like my left-aligned mock-up looks?

Dave

Reply With Quote
  #2  
Old   
dorayme
 
Posts: n/a

Default Re: Can the numbers in a list be left-aligned? - 12-27-2007 , 01:59 PM






In article
<5c3c46cf-d374-4bc9-893c-4d8e1e0efe28 (AT) s19g2000prg (DOT) googlegroups.co
m>,
Dave Rado <dave.rado (AT) dsl (DOT) pipex.com> wrote:

Quote:
Is it possible with css to make the numbers in a numbered list left-
aligned (as in this mock-up where I've used 2-column tables to achieve
it: http://tinyurl.com/yv6njd - as opposed to the default of right-
aligned numbers as in this mock-up: http://tinyurl.com/2dxer5)?

li {list-style-position: inside;} might get you the numbering
alignment you want. But at the cost of not getting the text
alignment you want!

(Frankly, and perhaps btw, I see the normal right aligned numbers
as being far more natural and better, think what happens when you
get into big numbers.)

Anyway, if you really want what you want, I have cleared the way
for you in another thread to use a table. Here is an excellent
demonstration of a good reason to replace a simple two col table
for an ordered list. Why bother with trying to dream up css
tricks to achieve your aim?


Quote:
And if it *is* possible, can one define the size of the hanging
indent, so that it looks like my left-aligned mock-up looks?

--
dorayme


Reply With Quote
  #3  
Old   
Dave Rado
 
Posts: n/a

Default Re: Can the numbers in a list be left-aligned? - 12-28-2007 , 12:42 PM



On 27 Dec, 19:59, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote:
Quote:
In article
5c3c46cf-d374-4bc9-893c-4d8e1e0ef... (AT) s19g2000prg (DOT) googlegroups.co
m>,
Dave Rado <dave.r... (AT) dsl (DOT) pipex.com> wrote:

Is it possible with css to make the numbers in a numbered list left-
aligned (as in this mock-up where I've used 2-column tables to achieve
it:http://tinyurl.com/yv6njd- as opposed to the default of right-
aligned numbers as in this mock-up:http://tinyurl.com/2dxer5)?

li {list-style-position: inside;} might get you the numbering
alignment you want. But at the cost of not getting the text
alignment you want!

(Frankly, and perhaps btw, I see the normal right aligned numbers
as being far more natural and better, think what happens when you
get into big numbers.)

Anyway, if you really want what you want, I have cleared the way
for you in another thread to use a table. Here is an excellent
demonstration of a good reason to replace a simple two col table
for an ordered list. Why bother with trying to dream up css
tricks to achieve your aim?

And if it *is* possible, can one define the size of the hanging
indent, so that it looks like my left-aligned mock-up looks?

--
dorayme
I agree that right-aligned numbering is more "natural" *conceptually*,
but it doesn't look nearly as nice in my opinion, and if you look at
printed documents, the numbering is almost always left-aligned.

As a programmer I can see why one would prefer right-aligned; but as a
user, I think left-aligned is much easier on the eye.

I'll take your advice and use tables for this.

Many thanks again

Dave


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.