473,387 Members | 1,379 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,387 software developers and data experts.

Spacing between list items on bulleted list.

I have a bulleted list and want to increase the spacing between the list items but not the
line spacing overall. Is there a way to do this? I'd hate to put a <br /> in the <li>'s.

Thanks.
Jul 20 '05 #1
5 79732
Stoic wrote:
I have a bulleted list and want to increase the spacing between the list items but not the
line spacing overall. Is there a way to do this? I'd hate to put a <br /> in the <li>'s.

Thanks.


li {margin: .2em 0}

is the way I do it.
Jul 20 '05 #2
In article <MP************************@news.comcast.giganews. com>, no****@nowhere.com says...
I have a bulleted list and want to increase the spacing between the list items but not the
line spacing overall. Is there a way to do this? I'd hate to put a <br /> in the <li>'s.

Thanks.

Figured it out. I put a margin-bottom: 10px; into the li and it solved my problem.
Jul 20 '05 #3
In article <dh****************@fe1.news.blueyonder.co.uk>, pa***********@blueyonder.couk
says...
Stoic wrote:
I have a bulleted list and want to increase the spacing between the list items but not the
line spacing overall. Is there a way to do this? I'd hate to put a <br /> in the <li>'s.

Thanks.


li {margin: .2em 0}

is the way I do it.

Thanks. I had already figured it out and put a margin-bottom: 10px; in. I'm assuming using
em's and not px's is better design. Why would that be? (and what's that trailing 0 for?)
Jul 20 '05 #4
Stoic wrote:
In article <dh****************@fe1.news.blueyonder.co.uk>, pa***********@blueyonder.couk
says...
Stoic wrote:
I have a bulleted list and want to increase the spacing between the list items but not the
line spacing overall. Is there a way to do this? I'd hate to put a <br /> in the <li>'s.

Thanks.


li {margin: .2em 0}

is the way I do it.


Thanks. I had already figured it out and put a margin-bottom: 10px; in. I'm assuming using
em's and not px's is better design. Why would that be? (and what's that trailing 0 for?)


The first figure is for top and bottom, the second for right and left. I
don't think I can really criticise px for the size of margins: I can for
the size of text though. Bear in mind that, if you use px, the margin
size will not change if the user scales the text size.

Paul
Jul 20 '05 #5
On Mon, 13 Sep 2004 17:12:26 -0400, Stoic wrote:
I have a bulleted list and want to increase the spacing
between the list items but not the line spacing overall.
Is there a way to do this?
<style type='text/css'>
li {
margin-bottom: 20px;
}
</style>
I'd hate to put a <br /> in the <li>'s.


Oh no, we'll have to spare your
visitors from that!

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 20 '05 #6

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

Similar topics

2
by: puzzled | last post by:
I am trying to use css to control the indentation within items in a list. I would like something that looks like this: Text of a paragraph goes here, leading to the following list: * list...
6
by: skeeterbug | last post by:
please check out http://www.geocities.com/operationsengineer1/test2.htm how come there is spacing between my logoheader and the tabs? i'm also seeing ie6 input an extra 1em of vertical...
1
by: Jim Moe | last post by:
Hello, I am (slowly) in the process of changing a table-based layout to CSS/div-based. One area that uses tables a lot is the main nav menu. I have discovered that tables have advantage: all...
1
by: Dan V. | last post by:
Why when I add a bulleted list to a page does it mess up the Navigation list on the left? These are the two pages: (one has a bulleted list the other does not and works fine) ...
33
by: Jim Cobban | last post by:
I cannot get Netscape 4.79 to properly display the ordered list in the following fragment. <P>Get a specific portion of the date. Depending upon the value of index: <ol start=0> <li>complete...
2
by: futurepy | last post by:
By default color of the list marker, disc or circle or square, is black. Is there a way to change the color, for example, to red or blue? Thanks.
1
by: nina297 | last post by:
My bulleted list is grabbing the correct text and value. I'm doing a response.redirect to Bookcategories.aspx but want to use the deafultvaluefield on the other page called classificationid, to...
2
ak1dnar
by: ak1dnar | last post by:
Hi, I have build up a client registration application with HTML/JSP/JS. the form consist with two fields Name,Email. Before insert these values to MySQL table i have done a validation...
6
by: greynium | last post by:
hi Please see http://thatshindi.oneindia.in in Firefox and IE7. The spacing between the lines are different. What we see in Firefox is what we desire. How do we fix things to make it look...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.