Ask Experts Questions for FREE Help !
Ask
    jeross97's Avatar
    jeross97 Posts: 0, Reputation: 1
    New Member
     
    #1

    Oct 6, 2007, 07:53 PM
    CSS and 2 Lists causing 2nd list problems
    I am trying to learn CSS. I don't like it so far. I know how to solve the problem using

    tables, but that won't teach me CSS.

    I have two unordered lists ( one for the menu) and another one for the office hours.

    However, the second one doesn't work right for some reason. It accepts the CSS font and

    removes the inline but doesn't put the squares before each list item and it doesn't do a

    return at the next <li>

    Here is the code:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>Untitled</title>
    <style type="text/css">
    h3 {color: #0061a5}
    </style>
    <style type="text/css">
    #navcontainer ul
    {
    padding: .2em 0;
    margin: 0;
    list-style-type: none;
    background-color: #0268BD;
    color: #FFF;
    width: 100%;
    font: bold 90% arial, helvetica, sans-serif;
    text-align: center;
    }
    li { display: inline; }
    li a
    {
    text-decoration: none;
    background-color: #0268BD;
    color: #FFF;
    padding: .2em 1em;
    border-right: 1px solid #fff;
    }
    li a:hover
    {
    background-color: #E34661;
    color: #fff;
    }
    li.list2 {
    list-style: square inside;
    background-color: #ffffff;
    font: normal 90% courier, new;
    }.blacktext {color:black}
    </style>

    </style>
    </head>
    <body style="FILTER: progid:DXImageTransform.Microsoft.Gradient(endColo rstr='#E6E9EB',

    startColorstr='#3C7FAF', gradientType='0')">
    <br>
    <table align="center" bgcolor="#ffffff" width="80%" height="100" border="0">
    <tr><td><img height=129 alt="" src="images/symbol.jpg" width=109 border=0></td>
    <td align="middle" width="45%"></td><td>

    </td></tr></table>

    <!-- Site navigation menu -->
    <table bgcolor="></td><td>

    </td></tr></table>

    <!-- Site navigation menu -->
    <table bgcolor=" align=" align=" border=" border=" height="25" width=" height="><tr>
    <tr valign="top" width="middle"><tr>
    <tr valign="navcontainer">
    <td align="list1">
    <div id="active">
    <ul id="#">
    <li id="#"><a id=current href="#">Item one</a>
    <li><a href="#">Item two</a>
    <li><a href="#">Item three</a>
    <li><a href="400" width=">MAP</a>
    <li><a href=" align=">FORMS</a> </li></ul></div></td></tr></table>

    <table height=" bgcolor=" width=" border="1" align="50%" bgcolor=" bgcolor=">
    <h3>WELCOME</h3>
    Words... Words... Words... <p>Words... Words... Words... <p>Words... Words... Words...
    <h3>Office Hours</h3>
    <div><strong> ===> NO SQUARES, AND IT DOESN'T GO TO THE NEXT LINE PROPERLY <====

    </strong> <P>
    <ul>
    <li class="list2"><span class="blacktext">Monday 8:00 - 4:30 pm
    <li class="list2">Tuesday 8:00 - 4:30 pm
    <li class="list2">Thursday 8:00 - 4:30 pm
    <li class="list2">Friday 8:00 - 4:30 pm
    <li class="list2">Saturday 8:00 - 11:00 am
    </span>
    </li>
    </ul>
    </div>

    </body>
    </html>

    If anyone could show me how to fix this, I would be very appreciative. But I would also like

    to know why it's ignoring my code too.

Check out some similar questions!

Co-worker causing problems [ 3 Answers ]

My co-worker on my shift has another supervisor other than my boss because they are engaged. I have no idea why she is angry with me other than she wants all the attention and insecurities with her relationship. It has come back from other workers in the business that she is asking them on...

Graphic cards causing problems [ 1 Answers ]

Hello all! I had an Asrock P4i65G motherboard and I just bought a new one (the same). When I connect the monitor (Eizo Flexscan L365) to the integrated graphic card (Intel Extreme graphics 2) , the screen is blurred. I tried adjusting the screen settings with no success. When I connect the AGP...

Water line break causing problems [ 1 Answers ]

This morning I noticed a river of water coming out of my front yard so I called the water company and they came out a replaced the pvc connecting my residence to the water system with brass. Since then I regained adequate pressure in all of my faucets but both of my toilets will not refill when...


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.