Reply to Re: How to modify CSS with PHP?

Your name:

Reply:


Posted by deko on 08/23/06 18:56

> Maybe adding a
>
> <option value-"">select</option>
>
> option at the top of the list

That seems to be the only way around this limitation of the element.

Unfortunately, due to other circumstances, I cannot regenerate the entire select
element (putting the selected option on top) with PHP on post back. So I am
using this:

<form name="bgcolor" action="http: / /www . example . com/ks032/?p=49"
method="post">
<select name=color onChange="bgcolor.submit()">
<option selected value=default>select background color</option>
<option value=white>white</option>
<option value=yellow>yellow</option>
<option value=gray>gray</option>
</select>
</form>

The problem I have now is the width of the combo box. The text 'select
background color' gets truncated because the combo box is too narrow. I tried
this:

<select name=color width="60" onChange="bgcolor.submit()">

and this:

<form name="bgcolor" width="60" action=" ... " method="post">

but no luck.

How do I set the width of that combo box??

Thanks in advance.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация