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 06-26-2002, 03:22 PM   PM User | #1
Roelf
Senior Coder

 
Join Date: Jun 2002
Location: Zwolle, The Netherlands
Posts: 1,110
Thanks: 2
Thanked 28 Times in 28 Posts
Roelf is on a distinguished road
Indent level for an li element

Hi,

how can i adjust the indent level for an li element in an unordered list.

Roelf
Roelf is offline   Reply With Quote
Old 06-26-2002, 03:23 PM   PM User | #2
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
Which way do you want to adjust it?
QuackHead is offline   Reply With Quote
Old 06-26-2002, 05:39 PM   PM User | #3
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
Experiment with:

li {
margin-left: 5px;
}

You can also try padding-left;
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 06-26-2002, 06:32 PM   PM User | #4
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
That'll probably only work for IE, I could be wrong though.

~Quack
QuackHead is offline   Reply With Quote
Old 06-27-2002, 12:38 AM   PM User | #5
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
Quote:
Originally posted by QuackHead
That'll probably only work for IE, I could be wrong though.

~Quack
Should actually work in IE5+ and any Gecko-based browser, as well as Opera 5+.

I'm not sure about IE4.
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 06-27-2002, 08:51 AM   PM User | #6
Roelf
Senior Coder

 
Join Date: Jun 2002
Location: Zwolle, The Netherlands
Posts: 1,110
Thanks: 2
Thanked 28 Times in 28 Posts
Roelf is on a distinguished road
thanks, the margin-left property worked fine for me
Roelf is offline   Reply With Quote
Old 06-28-2002, 08:04 AM   PM User | #7
Zvona
Regular Coder

 
Join Date: May 2002
Location: Helsinki, Finland
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Zvona is an unknown quantity at this point
I use div element for better results :
Code:
<div style="width:640px;">
	<ul>
		<li style="margin-left:20px;">Intended 20 pixels</li>
		<li>Not intended</li>
	</ul>
</div>
__________________
Zvona
First Aid for
Web Design
Zvona 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 11:14 AM.


Advertisement
Log in to turn off these ads.