'responsive button group container
I have two buttons in a row in a grey container , in mobile view I want to have a responsive container and its height be somehow that all buttons can place well in it , button number 2 can be removed for some cases so height can not be fixed and may change if we have 1 button or two
.selectContainer {
top: 0;
height: 95px;
position: sticky;
z-index: 9999;
padding: 1.4em;
width: 100%;
background: rgb(239, 239, 239);
}
Solution 1:[1]
Try to add this line to your design :
display: flex;
justify-content: space-between;
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Skatox |