Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-13-2002, 11:26 AM   PM User | #1
ShMiL
Regular Coder

 
Join Date: Jul 2002
Posts: 436
Thanks: 1
Thanked 0 Times in 0 Posts
ShMiL is an unknown quantity at this point
padding/spacing in lists

I have a list (<ul>) and I want to do two things:
1. to expand the spacing between the text and the disc (the little dot saying it is a new element in the list).
2. to expand the spacing between every element in the list.


anyone knows?
PLZ HELP.
Thanks,
ShMiL
ShMiL is offline   Reply With Quote
Old 08-13-2002, 12:26 PM   PM User | #2
Morgoth
Senior Coder

 
Morgoth's Avatar
 
Join Date: Jun 2002
Location: Ontario, Canada Remaining Brain Cells: 6
Posts: 1,402
Thanks: 2
Thanked 1 Time in 1 Post
Morgoth is an unknown quantity at this point
http://www.idocs.com/tags/_OL_START.html

Try this.
If you can't find a way to make the space between any bigger, then it might not be able to be done.

Unless you use .&.n.b.s.p.;.

REMOVE THE "." FOR IT TO WORK. (It doesn't show up as normal text on this message board.)
Code:
<OL>
<LI>.&.n.b.s.p.;.Place geletin mold over plate
<LI>Tap gently with a spoon
<LI>Lift mold off of geletin
</OL>
REMOVE THE "." FROM THE CODE FOR THIS TO WORK. (It doesn't show up as normal text on this message board.)



As for makeing the text between text:
Adding it in a table, or using <BR> seem to only work.
Code:
<OL>
<LI>Place geletin mold over plate
<br>
<LI>Tap gently with a spoon
<br>
<br>
<LI>Lift mold off of geletin
</OL>
as you can see ONE <BR> doesn't do it... you need TWO <BR><BR>


Happy?

Last edited by Morgoth; 08-13-2002 at 12:29 PM..
Morgoth is offline   Reply With Quote
Old 08-13-2002, 01:30 PM   PM User | #3
ShMiL
Regular Coder

 
Join Date: Jul 2002
Posts: 436
Thanks: 1
Thanked 0 Times in 0 Posts
ShMiL is an unknown quantity at this point
Actually, I'm not happy

( :

I'm looking for the CSS way to do it...
I'm sure there is, I just don't know how...
ShMiL is offline   Reply With Quote
Old 08-13-2002, 02:09 PM   PM User | #4
Morgoth
Senior Coder

 
Morgoth's Avatar
 
Join Date: Jun 2002
Location: Ontario, Canada Remaining Brain Cells: 6
Posts: 1,402
Thanks: 2
Thanked 1 Time in 1 Post
Morgoth is an unknown quantity at this point
Well, this way works too.
Maybe you should just take it.
Morgoth is offline   Reply With Quote
Old 08-13-2002, 02:44 PM   PM User | #5
ShMiL
Regular Coder

 
Join Date: Jul 2002
Posts: 436
Thanks: 1
Thanked 0 Times in 0 Posts
ShMiL is an unknown quantity at this point
I'm sure it works

I'm sure it works but I want to force it on all <ul> tags.
I NEED CSS!
ShMiL is offline   Reply With Quote
Old 08-13-2002, 02:53 PM   PM User | #6
Morgoth
Senior Coder

 
Morgoth's Avatar
 
Join Date: Jun 2002
Location: Ontario, Canada Remaining Brain Cells: 6
Posts: 1,402
Thanks: 2
Thanked 1 Time in 1 Post
Morgoth is an unknown quantity at this point
Have you tried to google it?
Morgoth is offline   Reply With Quote
Old 08-13-2002, 03:05 PM   PM User | #7
ShMiL
Regular Coder

 
Join Date: Jul 2002
Posts: 436
Thanks: 1
Thanked 0 Times in 0 Posts
ShMiL is an unknown quantity at this point
I have...

No Luck
ShMiL is offline   Reply With Quote
Old 08-13-2002, 04:06 PM   PM User | #8
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
The CSS for part of what you want is here . Finding a browser that honors the CSS is another matter entirely.

You can increase space between items using padding and margins in CSS .

Last edited by Roy Sinclair; 08-13-2002 at 04:09 PM..
Roy Sinclair is offline   Reply With Quote
Old 08-13-2002, 04:47 PM   PM User | #9
ShMiL
Regular Coder

 
Join Date: Jul 2002
Posts: 436
Thanks: 1
Thanked 0 Times in 0 Posts
ShMiL is an unknown quantity at this point
Thanks!

The second link really helped me!
But I have another problem:
I have a <li> tag that contains a long text (more than two rows). Now the dot is vertical aligned to the top - and I want it to be v-aligned to the middle. How can I do that using CSS?
Thanks,
ShMiL
ShMiL is offline   Reply With Quote
Old 08-13-2002, 05:07 PM   PM User | #10
Morgoth
Senior Coder

 
Morgoth's Avatar
 
Join Date: Jun 2002
Location: Ontario, Canada Remaining Brain Cells: 6
Posts: 1,402
Thanks: 2
Thanked 1 Time in 1 Post
Morgoth is an unknown quantity at this point
It's never enough with you, eh ShMiL?

hehe
Morgoth is offline   Reply With Quote
Old 08-13-2002, 06:47 PM   PM User | #11
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
Re: Thanks!

Quote:
Originally posted by ShMiL
The second link really helped me!
But I have another problem:
I have a <li> tag that contains a long text (more than two rows). Now the dot is vertical aligned to the top - and I want it to be v-aligned to the middle. How can I do that using CSS?
Thanks,
ShMiL
This paragraph from the CSS2 specifications pretty much rules out what you're wanting:

Quote:
The height of a marker box is given by the 'line-height' property. The :before (:after) marker box participates in the height calculation of the principal box's first (last) line box. Thus, markers are aligned with the first and last line of an element's content, even though the marker boxes live in distinct line boxes. If no first or last line box exists in a principal box, the marker box establishes its line box alone.
Roy Sinclair is offline   Reply With Quote
Old 08-13-2002, 07:16 PM   PM User | #12
ShMiL
Regular Coder

 
Join Date: Jul 2002
Posts: 436
Thanks: 1
Thanked 0 Times in 0 Posts
ShMiL is an unknown quantity at this point
My English is very poor and

i'm afraid I don't quite understand what you quoted...
Can you translate it into simple words?
ShMiL is offline   Reply With Quote
Old 08-13-2002, 07:22 PM   PM User | #13
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
Re: My English is very poor and

Quote:
Originally posted by ShMiL
i'm afraid I don't quite understand what you quoted...
Can you translate it into simple words?
What is says is that the "marker" will be aligned with the first line of a multi-line list item. That's what's expected and no provision was made in CSS to alter that behavior.
Roy Sinclair is offline   Reply With Quote
Old 08-13-2002, 09:05 PM   PM User | #14
ShMiL
Regular Coder

 
Join Date: Jul 2002
Posts: 436
Thanks: 1
Thanked 0 Times in 0 Posts
ShMiL is an unknown quantity at this point
Now I understand

Not possible. So I'll use spaces instead.
Thanks alot to you all.
ShMiL
ShMiL is offline   Reply With Quote
Old 08-13-2002, 09:08 PM   PM User | #15
ShMiL
Regular Coder

 
Join Date: Jul 2002
Posts: 436
Thanks: 1
Thanked 0 Times in 0 Posts
ShMiL is an unknown quantity at this point
I mixed up stuff

I meant I won't use the valign option (cuz it's not possible).
But I still can't change the padding between the DOT and the TEXT...
Have you done this before? Do you know how to do it?
Thanks,
ShMiL
ShMiL is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT +1. The time now is 08:44 AM.


Advertisement
Log in to turn off these ads.