Hello everyone, I'm stepping into the world of HTML and CSS with my first question. As a beginner, I find myself facing a challenge that seems to be beyond my current skill level.
Here's the scenario: I want to create a webpage with a fixed left navigation bar and a gallery on the right featuring items with fixed widths.
I've created a fiddle for you to check out: http://jsfiddle.net/1fbntotr/
<div class="left"> <div class="logo"> </div></div>
<div class="right">
<div class="item"> </div><div class="item"> </div><div class="item"> </div><div class="item"> </div>
<div class="item"> </div><div class="item"> </div><div class="item"> </div><div class="item"> </div>
<div class="item"> </div><div class="item"> </div><div class="item"> </div><div class="item"> </div>
<div class="item"> </div><div class="item"> </div><div class="item"> </div><div class="item"> </div>
<div class="item"> </div><div class="item"> </div><div class="item"> </div><div class="item"> </div>
</div>
The issue is that the right part of the page doesn't recognize when the items end, resulting in a 'ghost' section in the middle, despite using percentage-based widths.
I've attempted solutions from various discussions, but they don't seem to align with my specific layout. Is there a fundamental concept or solution that I may have overlooked? Any guidance would be greatly appreciated. Thank you for your understanding.