javascript - Image inside menu tab -


i'm using javascript make div 3 tabs; http://www.barelyfitz.com/projects/tabber/ (maybe it's easier see css code there instead of copying here?)

anyway, want use image inside of tab instead of h2 heading, uses default. possible?

<div class="tabber">   <div class="tabbertab">    <h2>tab 1 <img src doesn't work here></h2>   <p>tab 1 content.</p>  </div>    <div class="tabbertab">   <h2>tab 2</h2>   <p>tab 2 content.</p>  </div>    <div class="tabbertab">   <h2>tab 3</h2>   <p>tab 3 content.</p>  </div> 

thanks in advance!

<div class="tabber">   <div class="tabbertab">      <h2>tab 1 <img src="http://slembassyusa.org/downloads/flag_of_sri_lanka.png" width=100 height=20 /></h2>   <p>tab 1 content.</p>  </div>    <div class="tabbertab">   <h2>tab 2</h2>   <p>tab 2 content.</p>  </div>    <div class="tabbertab">   <h2>tab 3</h2>   <p>tab 3 content.</p>  </div> 

demo enter image description here


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -