Latest Lists

HTML,CSS,PHP question !?

hi all beautiful readers of my question , please see the following code , the second line is the subject of my question i think : $ghtml = "<p align=\"center\"><b>$groupm</b></p>\n"; $ghtml .= "<p align=\"center\"><ul style=\"list-style-image: url(imgbullet.gif)\">"; while (($row = mysql_fetch_array($result))) { $name = $row['Name']; $id = $row['ID']; $ghtml .= "<li><a href=\"sgroup.php?id=$id\">$name</a></li>"; } $groups_html .= "</ul></p>"; return $groups_html; in the second line i added the style tag refering to an image to be displayed instead of simple bullets , but nothing appears , first tell me is the syntax is correct when i ve combined css and html and my php code , then tell me how can i solve this problem , i ll be thankful pals

Public Comments

  1. this might sound stupid because I have limited knowledge of html but, it migh be a different form than i'm used to but after to $ghtml on the second line you have a period before the = now if this has helped any i'll be surprised but it was worth a shot because you seem to have all carrots in place and subject tags in place (sorry if that's the wrong word but again i have very limited knowlege on the subject
  2. you try for your code work in without php in htm after then try for with php code or your image file in the same direcotries of your this code.
  3. First of all its not a good practice to have instyle css code. Secondly this css property must be iniside a li tag -> <li style=\"list-style-image: url(imgbullet.gif)\"> . Its better though to add a id in your ul tag and externalize your css code. <ul id="myList"> <li><a href="" title="">your link</a></li> </ul> #myList li {list-style-image: url('imgbullet.gif'); }
  4. instead of adding CSS to <ul> try adding it to <li> tag this might give you your desired output else in css try indication by sequence .<classname> ul <indicate color and text formatting> .<class name> ul li <indicate image >
Powered by Yahoo! Answers