Hello
Not really sure if I am posting this in the right area so sorry if I am. I am doing a query from a database to display a bulleted list of items I get the list fine but when I try to put it in a div tag wanting only three per column. It doesnt show up they all go in one line is there a way to fix this.
This is how I want it do display
one Four Seven
two Five Eight
three Six Nine
This is how its displaying and its going out of the confines of the div tav
Here is the query and div info
<style>
#contentHeader2
{
font-family: Tahoma;
font-size: 11px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #FFFFFF;
background-color: #C80201;
height: 100px;
width: 765px;
background-repeat: no-repeat;
background-position: center bottom;
text-align:left;
list-style-position: inside;
list-style-image: none;
list-style-type: circle;
}
</style>
Here is the code and other html
<div id="contentHeader2"><ul><?PHP
$res = mysql_query(" select number from number table where status='enabled'") or die(mysql_error());
for ($i = 0; $i < mysql_num_rows($res); $i++) {
$headernumber= mysql_result($res, $i, "name");
echo("<ul><li>$headnumber</lil></ul>");
}
?>
</ul></div>