I am creating a restaurant menu page for a personal project. I managed to display the items side by side, now I need to have a general class to wrap around both of the left and right section so I can create a border around the items like the upper left picture.
My problem is that I already created a salads container class but it is not wrapping the right area. It is only wrapping the title of the menu and not the area underneath it (upper right picture blue area)
I’ve also included my html code. I could not figure out why it is not wrapping the entire left and right section.
Here is a better screenshot
From a logical standpoint, it’s wrapping it fine. Must be a problem with your CSS.
Could you post your code (both HTML and CSS) as text? Wrap it in triple-backticks like this:
//Your code here
Here is my CSS.
margin: 1em auto;
border: 1px solid #ddd;
padding: .3em .6em;