Solved

HTML List format

Posted on 2007-12-03
4
166 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
  • 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now