Having trouble with the sizing of my tabs in a project I'm working on. The first tab displays ingredients, while the second tab allows for adding new ingredients with various forms. However, when selecting different forms, the width of the form container seems to shift unpredictably - sometimes too small and off-center, other times covering the whole tab. I think setting it to a fixed size like 500px would solve this issue, but then it creates problems for mobile usage or smaller components where scrolling is necessary. Adjusting the CSS using media queries didn't quite work as expected. Any suggestions or insights would be greatly appreciated as I am not very familiar with CSS and feel lost in troubleshooting this problem. Thank you!
#formContainer {
width: 500px;
height:480px;
margin-top: 20px;
}
@media only screen and (max-width: 800px) {
#formContainer {
max-width:fit-content;
height:fit-content;
}
}
Any help or recommendations would be highly valued. Your expertise could really make a difference in solving this dilemma. Thanks again.