Set the CSS width of the button to 100% when mobile

0

Hello, I would like help with a small problem, although it sounds simple, I do not mess with CSS so I ask for help. I would like to set the width of my button when the site is accessed for 100% so that it occupies all space. I believe the image will better illustrate:

Through the Image you can see that the buttons are unequally sized, is there any way I can fix it?

    
asked by anonymous 28.03.2017 / 21:25

1 answer

3

Put media queries to solve this problem.

See the following example:

 @media screen and (max-width: 480px) {
     button {
       width:100%;
     }
 }

This link explains step by step how we can use the media queries: link

    
28.03.2017 / 22:11