Jump to content

[SOLVED] list_style image wont dispaly in menu


Lassie

Recommended Posts

This may not seem like a php question but the code is tied into php.

I have a simple menu that should dipslay a customised bullet against each item and change when the item is selected ( from bullet to arrow)

The images dont display.

The list is populated from a db using php and the links are made from a function.

The site link is http://217.46.159.226/e_cart22/

The menu is select e-books cataegory.

Any help appreciated.

The css is

Code:

 

#cats {

  margin-top: 5px;

  float:left;

}

 

#cats td.head {

  text-align:center;

  width:180px;

  background-color: gray;

  color: #FFFFFF;

  font-size: 90%;

}

#cats ul {

list-style-type: none;

margin-left: 0px;

padding-left: 0px;

}

 

.custom {

list-style-image:url('./images/bullet_cat.gif');

}

#cats li {

list-style-type: none;

background-image: url(./'images/arrow_green.gif');

background-repeat: no-repeat;

background-position:0px 2px;

padding-left: 30px;

padding-top: 2px;

padding-bottom: 2px;

margin-bottom: 2px;

 

 

}

div#cats li a:link {

text-decoration: none;

color: #00AEED;

font-weight: bold;

}

 

div#cats li a:visited {

text-decoration: none;

color: #00AEED;

font-weight: bold;

}

div#cats li a:hover {

text-decoration: none;

color: #FF0000;

font-weight: bold;

}

 

div#cats li a:active {

text-decoration: none;

}

 

The mark up is

Code:

 

echo '<table>';/*set overall table*/

  echo '<tr><td valign="top">';/*set first row and cell in overall table for cats*/

  echo '<div id="cats">';

  echo '<table width="180" border="1" valign="top">';/*set table for cats*/

  echo '<tr><td class="head" >Select an E-Book Category</td></tr>';/*set title cell*/

 

  echo '<tr><td>';/* set table row and cell for cats*/

  echo '<ul>';

  foreach ($cat_array as $row)

  {

    $url = 'show_cat.php?cat_id='.($row['cat_id']);

    $title = $row['cat_description'];

 

?>

<li class="custom">

<a href="<?php echo $url; ?>"><?php echo $title; ?></a><br />

 

    </li>

    <?php

  }

   

  echo '</ul>';

 

the function for the link is

Code:

 

function do_html_URL($url, $title)

{

  // output URL as link and br

?>

  <a href="<?php echo $url; ?>"><?php echo $title; ?></a><br />

<?php

}

 

 

I have checked my apache access logs and get the following which I think is an error code.

Can anyone intepret this for me please?

86.137.214.22 - - [16/Aug/2008:11:41:34 +0100] "GET /e_cart22/includes/images/bullet_cat.gif HTTP/1.1" 404 332 "http://217.46.159.226/e_cart22/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts)"

86.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.