perhaps you want something like this?:
form#yourid select {height: 50px;}
2011/9/8 Vineet <[email protected]>
> I have posted the code in 'View' file at
>
> http://stackoverflow.com/questions/7343374/web2py-view-height-size-of-a-select-box-in
> So avoiding the reposting of code here.
>
> ---Vineet
>
> On Sep 8, 4:01 pm, Vineet <[email protected]> wrote:
> > @Kenneth Lundström, @Martín Mulone,
> > I agree that this is an issue related to css setting.
> >
> > Somewhere in a /static/css file(s), there is a setting which is
> > forcing the <select> box of size="1".
> > Same <select> box is accepting size="1" in a standalone html file
> > (outside of web2py).
> >
> > Can anybody pl. point out which is that css file & what is the proper
> > place in that file to set (or maybe remove) the "size= "
> > setting.
> >
> > ---Vineet
> >
> > On Sep 8, 3:11 pm, Martín Mulone <[email protected]> wrote:
> >
> >
> >
> > >http://stackoverflow.com/questions/119961/select-tags-size-attribute-.
> ..
> >
> > > 2011/9/8 Kenneth Lundström <[email protected]>
> >
> > > > This is just a wild guess but I think CSS is doing it.
> >
> > > > Kenneth
> >
> > > > I wish to render a select box with size="3" sothat it will display 3
> > > >> items (instead of default size 1)
> >
> > > >> I specified it in View as under--
> >
> > > >> <form id= ...etc.>
> > > >> <select id="x" name="y" size="3">
> > > >> <option>opt1</option>
> > > >> <option>opt2</option>
> > > >> <option>opt3</option>
> >
> > > >> etc.
> > > >> </select>
> > > >> </form>
> >
> > > >> But its height(size) remains unaltered (1).
> > > >> It displays a scrollbar though.
> > > >> ----------------
> > > >> The same code, if tested in a standalone html file, works correct
> > > >> (i.e. the size is altered to 3)
> > > >> ----------------
> > > >> Why my code in "View" is not able to override the default size of 1?
> >
> > > >> Thanks,
> >
> > > >> Vineet
> >
> > > --
> > > http://martin.tecnodoc.com.ar-Hide quoted text -
> >
> > > - Show quoted text -- Hide quoted text -
> >
> > - Show quoted text -
--
http://martin.tecnodoc.com.ar