Saturday 9 August, 2008

How to change the size of a drop down menu


We can use CSS and the 'select' selector. i.e.:
<style type="text/css">
select {
height: 12px;
width: 100px;
max-height: 12px
}
</style>

(or)
<style type="text/css">
select {
font-family: Verdana, Arial, sans-serif;
font-size: 0.8em;
}
</style>

Different Type of Font Sizes are listed below

xx-small
x-small
small
medium
large
x-large
xx-large

The Default size is medium


No comments: