Note that there are some explanatory texts on larger screens.

plurals
  1. POnav not working properly in ie8 - no background colour + sub menus dont have inline style
    primarykey
    data
    text
    <p>Relatively new to CSS and html5, I have used <a href="http://line25.com/tutorials/how-to-create-a-pure-css-dropdown-menu" rel="nofollow">this</a> tutorial to create a simple pure CSS/html5 drop down menu. In IE8 it does not work properly unfortunately. I have used the HTML shiv and given all the html5 elements a <code>display:block</code> style in my stylesheet. </p> <p>The dropdown works and onhover colors appear for submenus in ie8 but the is no background color and the submenus don't position properly or appear as inline style even though I specified this in the CSS.</p> <pre><code>nav ul li{ display: inline-table; &lt;-- being ignored float:left; &lt;-- being ignored } </code></pre> <p>and for the background color for the list (used colorzilla to generate gradient code below)</p> <pre><code>nav ul { background: rgb(87,179,229); Old browsers - doesn't work background: -moz-linear-gradient(top, rgba(87,179,229,1) 0%, rgba(29,81,145,1) 50%, rgba(15,52,96,1) 51%, rgba(18,61,114,1) 74%, rgba(89,122,165,1) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(87,179,229,1)), color-stop(50%,rgba(29,81,145,1)), color-stop(51%,rgba(15,52,96,1)), color-stop(74%,rgba(18,61,114,1)), color-stop(100%,rgba(89,122,165,1))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(87,179,229,1) 0%,rgba(29,81,145,1) 50%,rgba(15,52,96,1) 51%,rgba(18,61,114,1) 74%,rgba(89,122,165,1) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(87,179,229,1) 0%,rgba(29,81,145,1) 50%,rgba(15,52,96,1) 51%,rgba(18,61,114,1) 74%,rgba(89,122,165,1) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(87,179,229,1) 0%,rgba(29,81,145,1) 50%,rgba(15,52,96,1) 51%,rgba(18,61,114,1) 74%,rgba(89,122,165,1) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(87,179,229,1) 0%,rgba(29,81,145,1) 50%,rgba(15,52,96,1) 51%,rgba(18,61,114,1) 74%,rgba(89,122,165,1) 100%); /* W3C */filter: /* To try and make it work in IE6-9 */ progid:DXImageTransform.Microsoft.gradient( startColorstr='#57b3e5', endColorstr='#597aa5',GradientType=0 ); /* To try and make it work in IE6-9 */ -ms-filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#57b3e5', endColorstr='#597aa5',GradientType=0 ); /* To try and make it work in IE6-9 */ box-shadow: 0px 0px 9px rgba(0,0,0,0.15); padding: 0 20px; border-radius: 0px; list-style: none; position: relative; display: inline-table; &lt;-- Not ignored in ie8 } </code></pre> <p>Does anyone have any ideas how I could make it work in IE8? I read that ie8 doesn't allow child elements to inherit styles in the nav/list hierarchy, but surely if I explicitly specify styles, they should work anyway? Is it that ie8 still doesn't recognise the nav/ul tags properly? </p> <p>All help much appreciated.</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.
    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