Just starting to dive into the world of CSS and HTML, I am currently experimenting with FlexBox. I have encountered an issue with my layout and I can't seem to figure out why my second div (.rightContainer
) is overflowing its parent. I have tried removing the height property, but that did not resolve the issue.
<!DOCTYPE html>
<html lang="en>
<head>
<meta charset="UTF-8>
<title>FlexBox Test</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="container">
<div class="leftContainer">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
<div class="rightContainer>
<div class="banner"></div>
</div>
</div>
</body>
</html>