CSS border issue

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
prgmctan
Forum Newbie
Posts: 19
Joined: Mon Feb 23, 2009 11:29 am

CSS border issue

Post by prgmctan »

Anybody know why I might not be able to see a border for this?

Code: Select all

<div id="content_supp">
    <ul id="hours">
        <h2>Hours</h2>
        <li><p>Monday - Thursday:</p><span>9:30am-2:00am</span></li>
        <li><p>Friday and Saturday:</p><span>9:30am-2:30am</span></li>
        <li><p>Sunday:</p><span>9:30am-10:00pm</span></li>
    </ul>
</div>

Code: Select all

div#content_supp ul li{ border-left: thin black solid;}
Never mind, I got it working
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: CSS border issue

Post by JAB Creations »

Whoa, remove the h2 element from the inside of the list. Only list related elements and generic inline elements (e.g. span, em) should ever be placed inside of li elements.
Post Reply