hi everyone..
i need some help to make a dropdown menu that is small when it is closed, but the options are bigger when it’s opened
an example is attached
i found this using style but it did not work for me
[code=html]
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<title>fixed select width</title>
<meta http-equiv=”Content-Type” content=”application/xhtml+xml; charset=utf-8″ />
<style type=”text/css”>
/*<![CDATA[*/
select {
width:550px;
}
option {
width:534px;
overflow:hidden;
}
/*//]]>*/
</style>
</head>
<body>
<form action=”#”>
<div>
<select>
<option></option>
<option>big option</option>
<option>big option big option big option big option big option big option big option big option big option big option big option big option big option big option big option big option</option>
</select>
</div>
</form>
</body>
</html>
[upl-file uuid=7b52b665-a073-4b8b-b978-a0cc731ba262 size=16kB]12.jpg