Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>See:</strong> <a href="http://jsbin.com/ihugut" rel="nofollow">http://jsbin.com/ihugut</a></p> <p>This works in all modern browsers, and IE8+ (it degrades reasonably in IE7).</p> <p><em>(<strong>edit:</strong> it turned out that this must work perfectly in IE7, so see the end of my answer for that solution)</em></p> <p>The one problem you might have is that because I aimed to keep the HTML as simple as possible, the CSS is complicated, so it could be difficult to make changes.</p> <p><strong>HTML:</strong></p> <pre><code>&lt;ol id="menu"&gt; &lt;li&gt;&lt;a href="#"&gt;Ballina g&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Konferenca g&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Folesit g&lt;/a&gt;&lt;/li&gt; &lt;/ol&gt; </code></pre> <p><strong>CSS:</strong></p> <pre><code>body { margin: 50px; background: #aaa } #menu { list-style: none; counter-reset: num; background: #444; float: left; margin: 0; padding: 12px 0 0 0; font: bold 19px sans-serif } #menu li { margin: 0 0 12px 0; float: left; clear: both; } #menu a { counter-increment: num; padding: 3px 15px 3px 50px; float: left; position: relative; color: #0cf; text-decoration: none } #menu a:hover { color: #fff } #menu a:before { content: counter(num, decimal-leading-zero); color: #ccc; position: absolute; left: 21px; font-weight: normal } #menu a:hover:before { color: #fff; } #menu li:hover { background: #0cf; margin-left: -5px; margin-right: 5px } #menu li:hover a { left: 5px } #menu a:hover:after { content: ' '; position: absolute; top: 0; left: -15px; width: 0; height: 0; border-top: 15px solid transparent; border-bottom: 15px solid transparent; border-right: 10px solid #0cf } </code></pre> <hr> <p>Here's a version that works fully in IE7: <a href="http://jsbin.com/ihugut/3" rel="nofollow">http://jsbin.com/ihugut/3</a></p> <p>The HTML had to be <strong>defiled</strong>:</p> <pre><code>&lt;ol id="menu"&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;span&gt;01&lt;/span&gt;Ballina g&lt;span class="arrow"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;span&gt;02&lt;/span&gt;Konferenca g&lt;span class="arrow"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;span&gt;03&lt;/span&gt;Folesit g&lt;span class="arrow"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ol&gt; </code></pre>
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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