Note that there are some explanatory texts on larger screens.

plurals
  1. POA simple tab implementation with <ul><li> but how to set tab background-image?
    primarykey
    data
    text
    <p>I implemented a simple <strong>tab navigation</strong> by using <code>&lt;ul&gt;&lt;li&gt;&lt;a&gt;</code> , the problem is that there are several "<strong>layers</strong>" on each tab still needed. what I mean is, In my current implementation I have:</p> <ul> <li><p>-tab text which is <code>&lt;a&gt;text&lt;/a&gt;</code></p></li> <li><p>-on each tab I have a tab icon image, which I put on <code>&lt;li&gt;</code> as background-image of <code>&lt;li&gt;</code>,</p></li> </ul> <p><strong>But I still need:</strong></p> <ul> <li><p>-tab <strong>seperator image</strong> (A vertical bar image) which I intend to put on <code>&lt;a&gt;</code>,and position it on the left side <code>background-position: left</code> , it is working but this implementation is not in my code which I showed below on <em>jsfiddle</em> site because I did not find a suitable image on internet</p></li> <li><p>-tab background image which occupy the whole tab, I have no idea where I should put this image?</p></li> </ul> <p>Please check &amp; run my implementation <a href="http://jsfiddle.net/Pq7LC/38/" rel="nofollow">here on jsfiddle</a>, in the css code, I used <code>background-color</code> instead of <code>background-image</code> just to express what I want to achieve, but I need to use <code>background-image</code> as the tab background.</p> <p><strong>What I tried:</strong></p> <ul> <li><p>I tried to put the <strong>tab background image</strong> on <code>&lt;li&gt;</code> but it will hide the <strong>icon image</strong> which has already on <code>&lt;li&gt;</code>,</p></li> <li><p>I tried to put the <strong>tab background image</strong> on <code>&lt;a&gt;</code> but it will also hide the <strong>tab seperator image</strong> when mouse hover</p></li> </ul> <p>How to get rid of this <strong>layer probelm</strong> on tab implementation then? (Please do not suggest me to use less image, since it is one requirement of this app to use those images.)</p> <p>(By the way, all images I mentioned have mouse "hover" counterpart)</p>
    singulars
    1. This table or related slice is empty.
    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