Loganathan Natarajan
asked on
How can I create css style like this combo box style?
I need to create exactly like the attached drop down list box using CSS. How can I do it? Thanks
image002.png
image002.png
U can add other options by adding more <option> tag like this
<form>
<select>
<option>United States</option>
<option>India</option>
<option>Canada</option>
</select>
</form>
<form>
<select>
<option>United States</option>
<option>India</option>
<option>Canada</option>
</select>
</form>
ASKER
@qwerty
thanks, I am more on the css desigin ..how to have a nice stylish like that?
thanks, I am more on the css desigin ..how to have a nice stylish like that?
Do u want to create the whole combo box using CSS ?
ASKER
Not like that, I need to apply CSS... i mean mix of HTML + CSS
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This may be what your looking for.
image002.png
<table cellspacing="0" cellpadding="0" style="font-size:10pt;width:150px">
<style>
body{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:8px;
}
#menu_lang {
margin: 0;
padding: 0;
list-style: none;
}
#menu_lang img {
margin-right:5px;
width:27px;
height:17px;
vertical-align:middle;
}
#menu_lang a {
text-decoration: none;
width:115px;
}
#menu_lang a:hover {
background-color:#DDDDDD;
}
</style>
<tr OnMouseOver="this.style.cursor='hand';" OnClick="var elem = document.getElementById('menu_lang'); if (elem.style.display=='') elem.style.display='none'; else elem.style.display='';">
<td width=128 style="padding-left:5px; padding-right:5px; border:1px solid #CCCCCC;">Choose language</td>
<td witdth=18><img src="image002.png"></td>
</tr>
<tr>
<td colspan="2" OnClick='document.getElementById('menu_lang').style.display='none';">
<ul id="menu_lang" style=display:none;border:1px solid #CCCCCC;padding:0px">
<li><img src="flag.png" /><a href="#1">English</a></li>
<li><img src="flag.png" /><a href="#2">Français</a></li>
<li><img src="flag.png" /><a href="#3">Deutsch</a></li>
<li><img src="flag.png" /><a href="#4">Português</a></li>
<li><img src="flag.png" /><a href="#5">Español</a></li>
</ul>
</td>
</tr>
</table>
flag.pngimage002.png
ASKER
@ eNarc..
good, i like this, <select name="button_create" id="button_create">
<option value="Yes">Best Thing in Life are Free</option>
</select>
i am working on this example.. thanks
good, i like this, <select name="button_create" id="button_create">
<option value="Yes">Best Thing in Life are Free</option>
</select>
i am working on this example.. thanks
your welcome logudotcom, anytime.
ASKER
sorry, my question is how to apply nice css styles to have combo like attached .jpg's. still i am working with<select name="button_create" id="button_create">
<option value="Yes">Best Thing in Life are Free</option>
</select>
...
not to create combo's dynamically
<option value="Yes">Best Thing in Life are Free</option>
</select>
...
not to create combo's dynamically
where did you actually get that screenshot of the drop down box? whats the website? would u provide the link to it?
ASKER
it has been provided by my client? it might be FLASH.. i doubt. i will ask him
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
<select>
<option>United States</option>
</select>
</form>