I’m trying to turn a layout I designed into a webpage in HTML+CSS.
The layout looks like this:
image
I want the central black div (with fixed width) to be centered while the menu should stay to its left and fill the entire left side of the screen, as shown above.
The problem is that I can’t figure out how to style the menu to fill the entire left side to get the mouse-over effect shown in the image.
Thank you very much.
You do it by letting the menu fill the entire width, and positioning the black logo element on top of it.
With CSS something like this:
You’ll notice that the :hover-effect of the menu items will also be shown on the right hand side. This you fix by applying a non-repeating background image, positioned 50% on the horizontal axis. Half of the image transparent, half of the image as the hover effect. With sufficient length.