Solved

HTML List format

Posted on 2007-12-03
4
173 Views
Last Modified: 2010-04-25
HI Experts,
How do I make
    * Take Exit for Dulles Tool Road:
          o If traveling South, take exit on right onto Dulles Toll Road
          o If traveling North, take exit 45 on left onto Dulles Toll Road
//I do not want this blank line to appear in the webpage//
    * Follow Dulles Toll Road Directions

appear as

    * Take Exit for Dulles Tool Road:
          o If traveling South, take exit on right onto Dulles Toll Road
          o If traveling North, take exit 45 on left onto Dulles Toll Road
    * Follow Dulles Toll Road Directions

The html code that I use is:
                        <span class="style1">From I-495</span>
                        <ul type="disc">
                  <li class="style1">Take Exit for Dulles Tool Road:</li>
                          <ul type="circle">
                    <li class="style1">If traveling South, take exit on right onto Dulles Toll Road</li>
                            <li class="style1">If traveling North, take exit 45 on left onto Dulles Toll          Road</li>
                        </ul>
                          <li class="style1">Follow Dulles Toll Road Directions</li>
                  </ul>

    * Take Exit for Dulles Tool Road:
          o If traveling South, take exit on right onto Dulles Toll Road
          o If traveling North, take exit 45 on left onto Dulles Toll Road
    * Follow Dulles Toll Road Directions
0
Comment
Question by:noobe1
[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
4 Comments
 
LVL 39

Expert Comment

by:Pratima Pharande
ID: 20400892

     <span>  From I-495</span>
<table><tr><td>
                        <ul type="disc">
                  <li class="style1">Take Exit for Dulles Tool Road:</li>
                          <ul type="circle">
                    <li class="style1">If traveling South, take exit on right onto Dulles Toll Road</li>
                            <li class="style1">If traveling North, take exit 45 on left onto Dulles Toll          Road</li>
                        </ul>
                          <li class="style1">Follow Dulles Toll Road Directions</li>
                  </ul>
</td></tr></table>

Open in new window

0
 
LVL 1

Accepted Solution

by:
eXman_pl earned 250 total points
ID: 20402083
You can user style in the sublist
               <span class="style1">From I-495</span>
                        <ul type="disc">
                  <li class="style1">Take Exit for Dulles Tool Road:</li>
                          <ul type="circle" style="margin:0; padding:0 10px">
                    <li class="style1">If traveling South, take exit on right onto Dulles Toll Road</li>
                            <li class="style1">If traveling North, take exit 45 on left onto Dulles Toll          Road</li>
                        </ul>
                          <li class="style1">Follow Dulles Toll Road Directions</li>
                  </ul>

Open in new window

0
 
LVL 1

Expert Comment

by:eXman_pl
ID: 20402086
Another thing is to just set the margin to 0 , then you loose control of the indent thought.
Hope this helps
0
 
LVL 18

Expert Comment

by:bruno
ID: 20405795
your code is incorrect, try the attached HTML



in your CSS you'd wnat to do this:


ul ul { margin-top: 0; padding-top: 0; }


that will get nested lists



<span class="style1">From I-495</span>
<ul type="disc">
   <li class="style1">Take Exit for Dulles Tool Road:
      <ul type="circle">
         <li class="style1">If traveling South, take exit on right onto Dulles Toll Road</li>
         <li class="style1">If traveling North, take exit 45 on left onto Dulles Toll          Road</li>
      </ul>
   </li>
   <li class="style1">Follow Dulles Toll Road Directions</li>
</ul>

Open in new window

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
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…

737 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