Page 1 of 1

CSS border issue

Posted: Wed Jun 03, 2009 11:04 pm
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

Re: CSS border issue

Posted: Sat Jun 13, 2009 9:25 pm
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.