Login or Sign Up
Logging in...
Remember me
Log in
Forgot password or user name?
or
Sign Up
Log in with
Search in titles only
Search in HTML & CSS only
Search
Advanced Search
Forum
Groups
Today’s Posts
Calendar
Forum
Client side development
HTML & CSS
Announcement
Collapse
No announcement yet.
UL height?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
mqcarpenter
New to the CF scene
Join Date:
Feb 2004
Posts:
57
Share
Tweet
#1
UL height?
Mar 3, 2004, 06:10 PM
Is there a way to increase space between <LI> elements in a <UL>? I want them to have more space than a typical list.
Thanks
Eskimo
New to the CF scene
Join Date:
Jun 2002
Posts:
226
Share
Tweet
#2
Mar 3, 2004, 06:16 PM
css would look like this:
li { margin: ?px(em) 0 ?px(em) 0:}
Margin allows you to set all four directions in one line (top right bottom left). As opposed to margin-top:x; || margin-bottom:x;.
replace the "?" with whatever distance you wish to have for the list, and choose wheather you want to use px's or em's.
You will need to set the other zeros to whatever you wish in order to get the list to indent properly for you.
example:
li {margin 5px 0 5px 15px;}
"Never offend people with style when you can offend them with substance."
--Sam Brown
Comment
Post
Cancel
mqcarpenter
New to the CF scene
Join Date:
Feb 2004
Posts:
57
Share
Tweet
#3
Mar 3, 2004, 06:25 PM
Ah. I was trying to do it all from the CSS on the UL element.
Thanks for the tip. That is perfect!
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment