Solved

HTML List format

Posted on 2007-12-03
4
170 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Bootstrap on PLNKR 3 29
HTML Display Current Year 5 26
HTML5 Get data in table rows 5 29
div to fit another div 8 22
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

773 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