I'm struggling with the following horizontal menu:
I'd like each <li>
item in the menu to be separated by a backslash. I've based my menu on this method: https://stackoverflow.com/a/6880421/556006
How can I get the menu to:
- Have the slashes sit in the negative space between each
<li>
element so that they always sit in between each subsequent<li>
- When the browser width drops below 730px, automatically resize to 2 rows of 3
<li>
items (at the moment it drops one<li>
down at a time as the browser width is reduced)
Thoughts?
You can add the slashes automatically with CSS like so:
And as for the resizing you can sorta fake it using
@media
queries for that. Take a look at this demo (readjust as necessary):http://jsfiddle.net/andresilich/UeFeb/1/
Reworked my answer into a more satisfactory one, here is the breakdown for future users:
HTML
CSS
http://jsfiddle.net/andresilich/UeFeb/3/