www.webdeveloper.com
Results 1 to 4 of 4

Thread: How do you control li attributes of a ul

  1. #1
    Join Date
    Nov 2005
    Location
    PRoM
    Posts
    376

    How do you control li attributes of a ul

    If you have

    <ul class="services">
    <li>Consulting Services</li>
    <li>Integrated Systems Design</li>
    <li>Research and Development</li>
    <li>Engineering Services</li>
    <li>Software Development</li>
    <li>Explosives Expertise</li>
    <li>Testing/Evaluation</li>
    <li>Lab Testing</li>
    <li>Military Planning</li>
    <li>Business Planning</li>
    <li>Management Consulting</li>
    <li>Process Development</li>
    </ul>

    Now rather than putting , class="services" into every <li> in the HTML how would you control everything within <ul class="services"></div> in the style sheet....


    if that makes any sense...
    ...just one more question...

  2. #2
    Join Date
    Nov 2005
    Location
    PRoM
    Posts
    376
    AND

    Can you make a list display in columns?
    ...just one more question...

  3. #3
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    <script type="text/javascript">
    </script>
    
    <style type="text/css">
    * {margin:0;padding:0;}
    .services {width:20em;list-style-type:none;overflow:hidden;}
    .services li {float: left;width:10em; color:#666;}
    </style>
    
    </head>
    <body>
    <ul class="services">
    <li>Consulting Services</li>
    <li>Integrated Systems Design</li>
    <li>Research and Development</li>
    <li>Engineering Services</li>
    <li>Software Development</li>
    <li>Explosives Expertise</li>
    <li>Testing/Evaluation</li>
    <li>Lab Testing</li>
    <li>Military Planning</li>
    <li>Business Planning</li>
    <li>Management Consulting</li>
    <li>Process Development</li>
    </ul>
    
    </body>
    </html>
    At least 98% of internet users' DNA is identical to that of chimpanzees

  4. #4
    Join Date
    Sep 2008
    Location
    On the Interweb
    Posts
    125
    Quote Originally Posted by pathfinder74 View Post
    AND

    Can you make a list display in columns?
    It would appear that you can:
    http://www.communitymx.com/content/a....cfm?cid=27f87
    "Why must I be surrounded by frikkin' idiots?!" - Dr. Evil

    "Remember: There are no stupid questions, only stupid people." - Mr. Garrison

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles