Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-01-2011, 04:16 AM   PM User | #1
jsano
New to the CF scene

 
Join Date: Nov 2011
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
jsano is an unknown quantity at this point
Ie7 and Ie8 compatibility

Hello.

I have had some issues with getting a site to work in ie7 and ie8. It seems to have to do with the inline-block issue but I can not seem to get a fix to work. From what I see, I am running into these issues.

It seems to be ignoring list-style-type: none.

It seems to be ignoring inline-block.

I have tried a few fixes, but none seem to work.

Here is what I have:

Code:
/* IE7 only */
nav ul li {
	display:inline;
	zoom:1
}
And I have this as my main style sheet:

Code:
/* Main navigation styling */

nav {
	width: 40%;
	position: absolute;
	left: 590px;
	top: 155px;
}

nav ul {
	list-style-type: none;
}

nav ul li {
	display: inline-block;
	margin-left: 15px;
}

ul.navmenu li a {
	display: block;
	width: 90px;
	height: 40px;
	background-image: url(images/navbuttons.png);
	font: 14px Arial, Helvetica, sans-serif;
}

ul.navmenu li.home a {
	background-position: 0 0;
}

ul.navmenu li.about a {
	background-position: -105px 0;
}

ul.navmenu li.gallery a {
	background-position: -218px 0;
}

ul.navmenu li.contact a {
	background-position: -335px 0;
}

ul.navmenu li.home a:hover {
	background-position: 0 -40px;
}

ul.navmenu li.about a:hover {
	background-position: -105px -40px;
}

ul.navmenu li.gallery a:hover {
	background-position: -218px -40px;
}

ul.navmenu li.contact a:hover {
	background-position: -335px -40px;
}
I appreciate any help I can get.
jsano is offline   Reply With Quote
Old 11-02-2011, 02:02 AM   PM User | #2
jsano
New to the CF scene

 
Join Date: Nov 2011
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
jsano is an unknown quantity at this point
Is there anyone that can help with this?
jsano is offline   Reply With Quote
Old 11-02-2011, 02:35 AM   PM User | #3
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
http://css-tricks.com/snippets/css/c...-inline-block/
Sammy12 is offline   Reply With Quote
Old 11-02-2011, 11:37 AM   PM User | #4
jsano
New to the CF scene

 
Join Date: Nov 2011
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
jsano is an unknown quantity at this point
Thank you for replying to my question.... however, I have tried this trick and it doesn't work or recognize it.

I have tried *zoom: 1 and display: inline. I have also tried placing those commands in a IE7 only css file and placed this code in the head section:

Code:
<!--[if IE 7]>
   		<link href="styleie7.css" media="screen" rel="stylesheet" type="text/css">
    <![endif]-->
Here is the contents of that css sheet for reference.
Code:
/* IE7 only */
nav ul li {
	zoom: 1;
        display: inline;	
}
I have been through tons of internet blogs talking about this (including your link) and it is not working. A cut and paste link is probably not going to help unless it is something obscure.

Is there anything specific someone can point out that could be causing this behavior?
jsano is offline   Reply With Quote
Old 11-02-2011, 11:53 AM   PM User | #5
jsano
New to the CF scene

 
Join Date: Nov 2011
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
jsano is an unknown quantity at this point
Below are some screenshots of the problem. Hopefully it helps.

Working IE 9 Example

IE 7 Example

IE 8 Example

It works in Firefox, Chrome, Safari, Opera. Just cant get these to versions of IE. I don't need IE 6.

Last edited by jsano; 11-02-2011 at 11:55 AM..
jsano is offline   Reply With Quote
Old 11-02-2011, 11:23 PM   PM User | #6
jsano
New to the CF scene

 
Join Date: Nov 2011
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
jsano is an unknown quantity at this point
I found the answer in another post.

I built the site in HTML 5. IE 8 and previous versions do not support the header, footer, nav, aside, etc tags and did not look at the css for them. A javascript solution was necessary to fix. That solution is here.

Consider this thread resolved.

Last edited by jsano; 11-02-2011 at 11:25 PM..
jsano is offline   Reply With Quote
Reply

Bookmarks

Tags
compatibility, css, html, ie7, ie8

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:34 AM.


Advertisement
Log in to turn off these ads.