Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I am not 100% sure what you mean with responsive images. But if you just want to resize the images according to the screen width, you could try something like this:</p> <pre><code>.lavaLampWithImage { margin:10px 0 0; padding:0; display:block; position: relative; width:100%; } .lavaLampWithImage li { display:inline-block; list-style: none; background-color:green; width:15.38%; } .lavaLampWithImage li:first-child { width:38.45%; } .lavaLampWithImage li a, .lavaLampWithImage li a img { display:block; width:100%; } </code></pre> <p>and the html:</p> <pre><code>&lt;div class="span6"&gt; &lt;div id="navbar"&gt; &lt;ul class="lavaLampWithImage" id="nav1"&gt; &lt;li&gt;&lt;a href="index.html"&gt;&lt;img class="mm" src="http://www.upsdell.com/BrowserNews/img/ban_300x60.png" alt="home" onClick="location.href='index.html'"/&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="current"&gt;&lt;a href="index.html"&gt;&lt;img class="mm" src="http://www.motive.co.nz/glossary/img/banner-120x60.gif" alt="home" onClick="location.href='index.html'"/&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://eywaz.com/sit2/MTA-2Website21-02/mta"&gt;&lt;img class="mm" src="http://www.motive.co.nz/glossary/img/banner-120x60.gif" alt="contact us" onClick="location.href='http://eywaz.com/sit2/'"/&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="help.html"&gt;&lt;img class="mm" src="http://www.motive.co.nz/glossary/img/banner-120x60.gif" alt="about us" onClick="location.href='help.html'"/&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="contactus.html"&gt;&lt;img class="mm" src="http://www.motive.co.nz/glossary/img/banner-120x60.gif" alt="contact us" onClick="location.href='contactus.html'"/&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>here is a <a href="http://jsfiddle.net/7t7zQ/1/" rel="nofollow">jsfiddle</a></p>
 

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