Skip to content Skip to sidebar Skip to footer

Html Css - Responsive Buttons (grid)

I have this portion in a website wherein there are buttons that looks like a grid, but they are just aligned by the usual css. It also only has 1 div which serves as its container.

Solution 1:

Just update width in percentage for .button3 class as below

.button3 {
   width: 30%;
}

Demo

Solution 2:

Remove break <br> which is placed between your button groups. This will make all button adjust themselves in grids as the size of window vary.

If you need all buttons should always be in their exact place (i.e. exactly n number of button in a row) then try to give width of button in percentage.

Post a Comment for "Html Css - Responsive Buttons (grid)"