Note that there are some explanatory texts on larger screens.

plurals
  1. POlist background colour screwed up in IE7
    primarykey
    data
    text
    <p>I've styled some unordered HTML lists and their heading to look like this in Firefox:</p> <p><a href="http://img24.imageshack.us/img24/711/screenshot001nij.png" rel="nofollow noreferrer">alt text http://img24.imageshack.us/img24/711/screenshot001nij.png</a></p> <p>Unfortunately, in IE7, they look like this:</p> <p><a href="http://img11.imageshack.us/img11/8343/screenshot002e.png" rel="nofollow noreferrer">alt text http://img11.imageshack.us/img11/8343/screenshot002e.png</a></p> <p>The relevant HTML is</p> <pre><code>&lt;div class="list-column"&gt; &lt;h4&gt;Types de pêche&lt;/h4&gt; &lt;ul&gt; &lt;li&gt;Pêche en lac&lt;/li&gt; &lt;li&gt;Pêche en Rivière&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>And the CSS is:</p> <pre><code>.list-column { float: left; margin-right: 20px; width: 20em; } div.list-column h4 { background-color: #FDD041; padding: 5px !important; } ul li { background-image: url(images/arrow.gif); background-position: 0 11px; background-repeat: no-repeat; list-style-image: none; list-style-position: outside; list-style-type: none; margin-bottom: 6px; margin-left: -20px; margin-top: 2px; padding: 2px 0 2px 18px; } </code></pre> <p>I suspect the fact that the div containing the list is floated left is probably the root of my problems, but I'm not sure how to workaround the poor display in IE7?</p> <p><strong>Update:</strong> I tried adding a 'zoom: 1' property to the 'ul' elements to see if giving the elements 'layout' would fix the problem in IE, but it didn't.</p> <p>The problem is definitely not related to the rounded corners. I turned them off temporarily but it didn't change anything in IE (apart from the appearance of the corners).</p> <p>Thanks, Don</p>
    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. 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