...

View Full Version : CSS to show submited data as list.



eapro
08-02-2007, 09:53 AM
I have a table that shows data with bullet infront of each list. 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

ahallicks
08-02-2007, 10:29 AM
Okay, little bit confused as to what you tried to make it appear inline as a list element will display as a block by default. Have you used:



<ul>
<li>AC</li>
<li>Water</li>
</ul>


Can you show us an example, or link to your page? If you have used a list and it's displaying like that then you could try adding to the CSS:



li {
display: block;
}

eapro
08-02-2007, 11:12 AM
Well that would work for static data. The problem is the text I am trying to list is dynamic, users submit. I have a form where users can enter data using this: http://www.freewebs.com/moreauctions/addtext.html

After they submit the form, I can later print/echo the text using $showcontent which is the variable for the textarea.

Now have to somehow get the value of $showcontent, then put a <br> BEFORE each bullet before printing it.

I'm doubting thing that CSS can do this now. I think this would be javascript but I'm not sure.

BWiz
08-02-2007, 04:42 PM
That would be down to you're PHP coding. I would use a loop.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum