Jump to content

Recommended Posts

Hi all,

 

I hope some kind soul can help me as I've an issue driving me mad. I've the following block of html:

<ul>
<li><a href="#"><span class="selected">Link</span></a></li>
<!-- show sub nav -->
<ul>
	<li><a href="#"><span>» Link</span></a></li>
	<li><a href="#"><span>» Link</span></a></li>
	<li><a href="#"><span>» Link</span></a></li>
</ul>
<!-- eof show sub nav -->
<li><a href="#"><span>Link</span></a></li>
<li><a href="#"><span>Link</span></a></li>
<li><a href="#"><span>Link</span></a></li>
<li><a href="#" class="back">< Back to X</a></li>
</ul>

Which has this rather lengthy block of CSS:

		#section_sub_navigation ul {
			list-style: none;
		}
		#section_sub_navigation li {
			margin: 0px 0px 0px 0px;
			height: 30px;
			line-height: 30px;
		}
			#section_sub_navigation li a {
				font-size: 13px;
				color: #053E77;	
				text-decoration: none;
			}
			#section_sub_navigation li a span {
				font-size: 13px;
				color: #053E77;	
				text-decoration: none;
				background: #F2F2F2;
				border-bottom: 1px solid #E3E3E3;
				display: inline-block;
				height: 29px;
				width: 210px;
				line-height: 30px;
				padding: 0px 0px 0px 10px;
			}		
			#section_sub_navigation li a span.selected {
				font-size: 13px;
				color: #053E77;	
				text-decoration: none;
				background: #EEC52B;
				border-bottom: 1px solid #E3E3E3;
				display: inline-block;
				height: 29px;
				width: 210px;
				line-height: 30px;
				padding: 0px 0px 0px 10px;
			}				
			#section_sub_navigation li a:hover span {
				font-size: 13px;
				color: #053E77;	
				text-decoration: underline;					
			}	
			#section_sub_navigation ul ul li  {

			}				
			#section_sub_navigation ul ul li a span {

			}
			/*#section_sub_navigation ul ul li a span {  
				font-size: 13px;
				color: #FF0000;	
				text-decoration: none;
				background: #FFF;
				border-bottom: 1px solid #E3E3E3;
				display: inline-block;
				height: 29px;
				width: 200px;
				line-height: 30px;
				padding: 0px 0px 0px 20px;
			}*/
			#section_sub_navigation ul ul li a span {  
				font-size: 13px;
				color: #FF0000;	
				text-decoration: none;
				background: #FFF;
				border-bottom: 1px solid #E3E3E3;
				display: inline-block;
				height: 29px;
				width: 200px;
				line-height: 30px;
				padding: 0px 0px 0px 20px;
			}				
			#section_sub_navigation ul ul li a:hover span {
				font-size: 13px;
				color: #FF0000;	
				text-decoration: underline;					
			}	
			#section_sub_navigation li a.back {
				font-size: 13px;
				color: #FF0000;	
				text-decoration: none;
				font-weight: bold;
			}
			#section_sub_navigation li a.back:hover {
				font-size: 13px;
				color: #FF0000;	
				text-decoration: underline;
			}

Now, the menu does what it's meant to in Chrome and FF, however, in IE8 it won't show. For Chrome and FF I get this:

Link

> Link

> Link

> Link

Link

Link

Link

 

In IE8 I just get this:

Link

Link

Link

Link

 

It simply won't show the sub nav (> Link). What am I missing?

Am developing locally at the mo so not got a link (sorry!)

 

TIA

 

jarvis

Link to comment
https://forums.phpfreaks.com/topic/241191-css-ul-ul-li-issue-in-ie8/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.