?
Solved

heading for ul tag makes a single line gap

Posted on 2004-09-28
3
Medium Priority
?
1,356 Views
Last Modified: 2012-08-14
I have a bullet pointed list with a heading
For example:

Fruit:
  * Apple
  * Orange
  * Pear

When I code this as:
Fruit:
<ul>
<li>* Apple</li>
<li>* Orange</li>
<li>* Pear</li>
</ul>
it outputs as:

Fruit:

  * Apple
  * Orange
  * Pear


When I code this as:


<ul>Fruit:
<li>* Apple</li>
<li>* Orange</li>
<li>* Pear</li>
</ul>

it outputs as:

     Fruit:
  * Apple
  * Orange
  * Pear

does anyone know what the code would be to output  it as the first example?
0
Comment
Question by:wjdashwood
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 1400 total points
ID: 12168860
Try:

Fruit:
<ul style="margin-top:0px;">
<li>* Apple</li>
<li>* Orange</li>
<li>* Pear</li>
</ul>

Regards

-r-
0
 
LVL 49

Expert Comment

by:Roonaan
ID: 12168867
Or use the inline executive:

Fruit:
<ul style="display:inline;">
<li>* Apple</li>
<li>* Orange</li>
<li>* Pear</li>
</ul>


-r-
0
 

Author Comment

by:wjdashwood
ID: 12168934
Thanks,
Thats perfect
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

764 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