I have a table that shows data with bullet infront of each item. But when I display it is doesn't show as a list... It shows like this: • AC • Water Is there anyway to use CSS to make it show like this?: • AC • Water It would simply have to put a <BR> before each •
I believe the style attribute "display: list-item" will do what you want, bullet pointing each item and putting htem on a new line... http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/display_list_item.html
Somewhere in your code have you set either ul or li to display: inline;? If so, remove or make it class specific.
But that is for static data. My data will be displayed from database something like: $showdata The data is submitted from a form. I have a feeling this can't be done with CSS so I have posted in programming.
You specifically asked if it could be done with CSS. Both of the responses you've had refer to CSS. It can also be done with programming. But, you can do it with CSS.
The method you gave me obviously didn't work. How is it supposed to know where to put the line break? Using... li { display: list-item; list-style-type: disc; } <li>$showlist</li> Just gives me: • AC • Water
If $showlist contained... "<li>AC</li><li>Water</li>" rather than "AC • Water" it would work fine. How are you building $showlist?