title: CSS: horizontal menu using list with background images?
body: <p>I’m trying to create a simple menu where I’ve got four menu items each have an image and then there is a special image for each item that is active.</p>
  
  <p>I’m using Drupal so the HTML output can’t be changed (not easy anyway) so my question is if and how it can be done by using the HTML code provided below:</p>
  
  <pre><code>&lt;div id="quicktabs-2" class="quicktabs_wrapper quicktabs-style-nostyle quicktabs-processed"&gt;
  &lt;ul class="quicktabs_tabs quicktabs-style-nostyle"&gt;
  &lt;li class="qtab-0 active first"&gt;&lt;a href="/bagsmaekken?quicktabs_2=0#quicktabs-2" id="quicktabs-tab-2-0" class="qt_tab active"&gt;Question&lt;/a&gt;&lt;/li&gt;
  &lt;li class="qtab-1"&gt;&lt;a href="/bagsmaekken?quicktabs_2=1#quicktabs-2" id="quicktabs-tab-2-1" class="qt_tab active"&gt;Lead&lt;/a&gt;&lt;/li&gt;
  &lt;li class="qtab-2"&gt;&lt;a href="/bagsmaekken?quicktabs_2=2#quicktabs-2" id="quicktabs-tab-2-2" class="qt_tab active"&gt;Board&lt;/a&gt;&lt;/li&gt;
  &lt;li class="qtab-3 last"&gt;&lt;a href="/bagsmaekken?quicktabs_2=3#quicktabs-2" id="quicktabs-tab-2-3" class="qt_tab active"&gt;Ready&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have created some that come close to my final wished result but I’m still having trouble with example to indent the text so it is not showed.
  Here is my CSS so far:</p>
  
  <pre><code>ul.quicktabs_tabs li {display:inline; }
  
  #quicktabs-2 li.active a {
    background-image:url(question-active.png);
  background-position:5px 0px;
    background-repeat:no-repeat no-repeat;
    padding-bottom:18px;
    padding-left:135px;
    padding-right:5px;
  }
  
  #quicktabs-2 li.qtab-1 a {
    background-image:url(lead-grey.png);
  background-position:5px 0px;
    background-repeat:no-repeat no-repeat;
    padding-bottom:18px;
    padding-left:29px;
    padding-right:50px;
  }
  #quicktabs-2 li.qtab-2 a {
    background-image:url(board.png);
    background-position:5px 0px;
    background-repeat:no-repeat no-repeat;
    padding-bottom:18px;
    padding-left:29px;
    padding-right:50px;   
  }
  #quicktabs-2 li.qtab-3 a {
    background-image:url(ready-grey.png);
    background-position:5px 0px;
    background-repeat:no-repeat no-repeat;
    padding-bottom:18px;
    padding-left:29px;
    padding-right:50px;
  }
  </code></pre>
  
  <p>This is my code so far and it shows my images correctly with the right spacing between them but the text within the a-href I just can’t get hidden. 
  I’m fairly certain that it is just a question of hitting the right style-class / id but I’ve tried a lot of different combination and I just can’t get it to work.</p>
  
  <p>Any help would be very much appreciated.
  Thank you</p>
  
  <p>Sincere<br>
  - Mestika</p>