CSS Library: Horizontal CSS Menus: Here
Slanted Divider Menu
Author: Dynamic Drive
We got our inspiration for this menu from Simplebit's bulletproof slants. It's an elegant CSS menu bar that uses a transparent "slanted" image to act as a divider and separate each menu item. Change the background color of the menu as desired. It differs from the Simplebits code in that no floating is used, enabling you to easily align the menu items either to the left, center, or right, just by changing the "text-align" property within the CSS code.
Demo:
The single image used:
![]()
The CSS:
Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.
Comment Pages 3 of 3 pages « First < 1 2 3
I had to move the FONT tags from '#slantedmenu' to '#slantedmenu ul li a' in order to get the correct sizing changes on my test page.
wow, excellent code, helped me in nick of time. thanks a lot :)









in css section "#slantedmenu ul li{" add:
padding-left: 4px;
padding-right: 4px;
in html code add 3 nonbreaking spaces on each side of the anchor tag, like this:
<li>[add nbsp *3 here]<a>*</a>[add nbsp *3 here]</li>