Note that there are some explanatory texts on larger screens.

plurals
  1. PO"chevron" style nav bar in CSS & browser scaling problems
    primarykey
    data
    text
    <p>I've been experimenting with making a HTML/CSS navigation bar with chevron-shaped list items. I've made my code available here: <a href="https://github.com/twslankard/css-chevron-bar/blob/master/index.html" rel="nofollow noreferrer">https://github.com/twslankard/css-chevron-bar/blob/master/index.html</a></p> <p>Since my question is fairly specific, I'm offering up the code as public domain in the off chance that one of you CSS wizards will help me. :)</p> <p>Now for my question. I've been trying to design the bar so that it scales properly, e.g. when someone modifies the font-size property of <code>ul.chevronbar li</code> or when the user hits <code>Control+</code> or <code>Control-</code> in the browser.</p> <p>I tried using two different CSS resets, both Eric Meyers Reset CSS 2.0 and YUI 3. However, in Firefox the scaling/zooming "mostly" works, and in Chrome it does not work (especially when zooming in). If possible, I'd like some advice on how to get this to work better in Chrome.</p> <p>Here's an image illustrating the issue. Your help is greatly appreciated.</p> <p><img src="https://i.stack.imgur.com/OG6K1.png" alt="enter image description here"></p> <p>EDIT: this is what I ended up with eventually. Pardon the messy CSS. I'll get around to cleaning it up later.</p> <p><a href="https://github.com/twslankard/css-chevron-bar-2" rel="nofollow noreferrer">https://github.com/twslankard/css-chevron-bar-2</a></p> <p>EDIT 2: Another person generously provided their solution to this problem here: <a href="http://jsfiddle.net/pXBTK/3/" rel="nofollow noreferrer">http://jsfiddle.net/pXBTK/3/</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload