PDA

View Full Version : size="4"


angiras
03-08-2003, 02:15 PM
what is the command for a select in sted of size="4"
with CSS ? height doesn't work

brothercake
03-08-2003, 02:22 PM
Size is the one you want - size determines how many options are visible - and is valid in all doctypes.

If you mean the height of each option, the font-size makes the biggest difference.

angiras
03-08-2003, 02:29 PM
yes I know that it is for to show number of lines
but I thought there is a possibility to do it with css and not with html

you're fast to answer ! :-)))

cg9com
03-08-2003, 07:33 PM
there may not be a css solution, but size="" would be the way to go anyways.

angiras
03-09-2003, 06:27 AM
thank you

brothercake
03-09-2003, 07:06 AM
What I was trying to make clear is: how many options are displayed in a select element usually makes a difference to how it behaves, or is interacted with, within the GUI application (your webpage). It's not a matter of "style", it's a matter of "semantics", and so HTML is the proper place to define it. :)

That's probably why there isn't a CSS property for it.

angiras
03-09-2003, 08:19 AM
ok thank you Brothercake