problem with list of options in html

0

I'm making a list of options and I used the select tag and the size attribute, the problem is that on the pc it looks good but on the mobile it does not.

I was thinking about susutiturilo by a menu, but I'm handling the value attribute to save the ids that are retrieved from the bd,

And some way that the select is visualized well in the mobil? or another alternative that I can use to make a list of options that allows me to handle something similar to the value attribute

I hope and you can help me

    
asked by Oliver Peres 16.05.2017 в 08:29
source

1 answer

1

If there is one, in your css or in the html document you should put the following:

#idDeTuComponente {
    width: 100%;
    height: 100%;
    max-width: anchoquequieras; //ej.(1920 px)
    max-height: alturaquequieras;
 }

In this way what the css will do is assign the maximum possible size to the component depending on the screen, (I recommend using 'div') and the maximum will assign the screen grandad or you want to give the component , so it will never go beyond that size but it will be regulated if it is less than this

    
answered by 16.05.2017 в 08:36