I’m having trouble creating a side bar navigation using images. The first image is the side image that should go all the way down and the other images go inside of it. The page should look like this:
Hi. What is the rest of your HTML and CSS. This doesn’t give any inside in what your after. You have a link?
edit: What are the properties (z-index, position, etc) of the other content. Does .sidenav has a parent? If yes what are the properties of the parent? Does it have a position declared? etc etc etc
<off topic>
Just so ya know, empty tags like “img”, do not require a closing slash. That is a carry-over from XHTML It has never been required in HTML (although very early Netscape gave it a try). </off topic>
Sounds like you are confusing overflow-x with overflow-y
According to the screenshot of “what the page should look like”, The OP wants them stacked, so display:block on the anchors IS what’s needed, when anchors are not nested in a block parent such as a <li>.
overflow-x: hidden removes sideways scrolling and still allows for scrolling on the “y” axis when it’s needed.
@mldardy, Since this is for navigation it should really be using a UL for a “List of Links” too.
You will, of course, remember to add appropriate alt text to the images so that your menu is usable by screen readers, or if the images fail to load for some reason.