Set size of a field of type "select".

QuestionsSet size of a field of type "select".
Montemaggiore Sebastian asked 10 years ago

Hello. Again i have another question.
How can i change the width of a fiel of type select in the edit form?.
Part of my code is,


$col = array();
$col["name"] = "anillado";
$col["edittype"] = "select";
$col["editoptions"] = array("rows"=>1, "value"=>'Si:Si;No:No', "cols"=>60);
$col["width"] = "80";
$cols[] = $col;

"cols"=>60 doesn´t have effect.

1 Answers
Abu Ghufran answered 10 years ago

Try setting:

$col["editoptions"] = array("style"=>"width:200px", "value"=>'Si:Si;No:No');

This will make width of dropdown to 200px.

Your Answer

11 + 4 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?