HTML/CSS/PHP Spacing of Option/Select aka Drop Down?

Adam Johnson

New member
Hi,

I'm populating a form using <select> and <option> tags and data from PHP to make a drop down menu which users can select values from.

This includes a File name, File size, and number of records in the file. I am trying to space this data out so it can be viewed easily in each <option>. I want it to be like a <table> inside the drop down so these 3 columns can be seperated.

As the data varies in length the only way I can think of is using tabs (\t) to split the data apart but I would have to use strlen() in php to find out how many tabs to use. Is there a better or easier way?

Many Thanks
 
Back
Top