Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html Tags > Re: select/opti...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 396 of 439
Post > Topic >>

Re: select/option tags and formatting

by "Jim Michaels" <jmichae3@[EMAIL PROTECTED] > Feb 3, 2006 at 12:53 AM

"Michael G" <mike-g@[EMAIL PROTECTED]
> wrote in message 
news:1124511387_3567@[EMAIL PROTECTED]
> Is there any way to format text within a option tag. I have tried a 
> variety of thing but
> all seem to be a hack. I want and like the ability to select items from
a 
> list because is
> seems so natural but getting them to look like something has been a bit
of 
> a challenge
> to say the least.
>
> <select>
>    <option>CS   445   3   Fall   2005</option>
>    <option>ENEX   333   2   Fall   2005</option>
> ...
> </select>
>
> Looks like this (maybe a little exaggerated)
> CS   445   3   Fall   2005
> ENEX   333   2   Fall   2005
>
> I am using a fixed width font so that helps a little but...I have found
no 
> way, except
> &nbsp; (which I don't like), to get some consistent spacing between the 
> strings in
> the option tag.

you are going to have to use &nbsp; to get your spacing.  but, you can
also 
use CSS to get your font formatting...

<select multiple name="class" style="font-family:Courier
New,Courier,mono;">
   
<option><pre>CS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;445&nbsp;&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;Fall&nbsp;&nbsp;&nbsp;2005</pre></option>
   
<option><pre>ENEX&nbsp;&nbsp;&nbsp;333&nbsp;&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;Fall&nbsp;&nbsp;&nbsp;2005</pre></option>
    ...
</select>

I suggest you give the user the option to repeatedly "add" classes to some

sort of internal list/db table, even if they multi-select to save time. 
they will probably be more grateful for it.

>
> What I would like is this, with the ability to select one or more.
>
> CS            445      3       Fall     2005
> ENEX       333      2       Fall     2005
>
>
> Thanks for any help.
> Mike
>
>
> ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet 
> News==----
> http://www.newsfeeds.com
The #1 Newsgroup Service in the World! 120,000+

> Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption 
> =----




 1 Posts in Topic:
Re: select/option tags and formatting
"Jim Michaels"   2006-02-03 00:53:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 14:15:40 CDT 2008.