Solved

Bulleted list carriage return problem

Posted on 2002-05-29
7
265 Views
Last Modified: 2012-05-04
The following code produces an unwanted carriage return (an extra blank line) between the "This is..." line and the first item in the list. How can this be solved?

This is a list:
<ul>
<li>Item #1
<li>Item #2
</ul>

Like this:

This is a list:

     Item #1
     Item #2

This is what I want:

This is a list:
     Item #1
     Item #2

Is there a "style" to control this?
0
Comment
Question by:vogtster
  • 3
  • 3
7 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 7041970
By not using ul

This is a list:
<li>Item #1
<li>Item #2
0
 

Author Comment

by:vogtster
ID: 7041995
If I eliminate <ul>, then how do I get an indentation of the list?
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 7042017
for ex.

This is a list:
<table border=0 cellspacing=0 cellpadding=0>
<tr><td width=20>&nbsp;</td><td>
<li>Item #1</li>
<li>Item #2</li>
</td></tr></table>
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:vogtster
ID: 7042035
Yes, I know how to use tables to do formatting, but isn't there a css attribute to control the style of lists and/or indentation?
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 7042040
AFAIk no, but I may very well be wrong.

CJ
0
 
LVL 2

Accepted Solution

by:
Marianne earned 50 total points
ID: 7042041
<ul style="margin-top: 0px;">
<li>Item #1
<li>Item #2
</ul>

Does nothing in NN4.x, but is not harmful and can be used to achieve good results in "good" browsers and acceptable results in "old" ones.
0
 

Author Comment

by:vogtster
ID: 7042058
Thanks, that is what I was looking for and could not figure out from the css documentation.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
two div layout one vertical other horizontal. 5 28
HTML5 Get data in table rows 5 29
CSS: How do I override in-line styling 11 16
parse url to form? 7 14
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question