Use input-lg and input-xs together

0

I'm using bootstrap. I have an input with the class: "input-lg". The problem is that in phones I want this input to be smaller. I can solve this by checking the resolution from javascript and removing this class on phones; I could also use half queries to modify the size. But I would like to know if there is any easier way, something like:

<input class="input-lg input-xs">
    
asked by Raymond Medina 06.01.2018 в 20:11
source

1 answer

0

You can use bootstrap grid:

col-lg-column y col-xs-column //siendo column el numero de 1 a 13

<input class="col-lg-10 col-xs-5">

Look at this link:

bootstrap grid

    
answered by 06.01.2018 в 20:18