Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS help need for odd ie6 problem
Old 01-31-2008, 11:17 AM CSS help need for odd ie6 problem
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
I am trying to design a site that looks great in FF and IE7 but there is one problem in IE 6.

The top menu there Home item says "e Hom" in IE6. The words are actually a background image so I'm pretty sure something is up with the CSS, but the code is identical to Forums and it displays correctly so I'm at a loss.

http://www.alikat-designs.com/client.../template.html

Any help would be appreciated.
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
 
Register now for full access!
Old 01-31-2008, 06:30 PM Re: CSS help need for odd ie6 problem
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
Im not sure why you are telling the background image to repeat. That might be messing things up. Also, you might try to position the background image to "top left".
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 01-31-2008, 06:37 PM Re: CSS help need for odd ie6 problem
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
I tried both of those, didn't do anything.

Just tried it again, nothing.

Last edited by AliKat; 01-31-2008 at 06:40 PM..
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Old 01-31-2008, 08:51 PM Re: CSS help need for odd ie6 problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You need to change that repeat in the background to no-repeat.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-31-2008, 09:52 PM Re: CSS help need for odd ie6 problem
BruceWayne's Avatar
Extreme Talker

Posts: 182
Trades: 0
Do you still have that problem ?
BruceWayne is offline
Reply With Quote
View Public Profile Visit BruceWayne's homepage!
 
Old 01-31-2008, 10:15 PM Re: CSS help need for odd ie6 problem
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
I did and it didn't work.

Updated the file. It still doesn't work.
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Old 02-03-2008, 09:10 AM Re: CSS help need for odd ie6 problem
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
hmmm, no one else wants to take a stab at the problem?

Things i've tried relative positioning, and moving the element.
no-repeat background.
background placement top left

so far nothing I've tried has worked.
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Old 02-03-2008, 11:56 AM Re: CSS help need for odd ie6 problem
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
I would attempt to help but I don't have IE6
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-03-2008, 01:11 PM Re: CSS help need for odd ie6 problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I managed to get it fixed. I wouldn't do the menu that way at all, images for navigation are just bad for accessibility, but this works.

First you need to use conditional comments and a separate css file to target IE6. This goes in your <head> section:

Quote:
<!--[if lt IE 7]>
<link href="template_files/iefixes.css" rel="stylesheet" type="text/css" />
<![endif]-->
I also changed the menu and made it a true list:

Quote:
<div id="menu">
<ul>
<li class="h"><a href="http://www.ageoflegends.net/"><img src="images/empty.gif" alt="Home" height="25" width="58"></a>
<li class="f"><a href="http://www.ageoflegends.net/boards"><img src="images/empty.gif" alt="Forums" height="25" width="66" /></a>
</ul>
</div>
And here's the CSS:

Quote:
#menu {
height: 25px;
background: url(images/bar25px.gif) repeat-x;
text-align: center;
clear: both;
/*position: relative;*/
/*top: -5px;*/

}


#menu ul{
list-style-type: none;
margin: 0;
padding: 0;
height: 25px;


}

#menu li, #menu li.h, #menu li.f{
display: inline;
margin: 0 10px;
padding: 10px 0px 0px 0;

}


#menu li a {
padding: 0;
margin: 0;

/*position: relative;
top: 3px;*/

}
#menu img {
border: none;


}
#menu li.h {
background: url(images/menu_home.gif) no-repeat;

}

#menu li.h a:hover, #menu li.h a:focus {
background: url(images/menu_home_over.gif) no-repeat;
margin: 0;
padding: 10px 0 0 0;
}
#menu li.f {
background: url(images/menu_forums.gif) no-repeat;
}

#menu li.f a:hover, #menu li.f a:focus {
background: url(images/menu_forums_over.gif) no-repeat;
margin: 0;
padding: 10px 0 0 0;
}

IEfixes.css file

#menu li{
margin: 0 10px;
padding: 0px 0px 0px 0;

}
#menu ul li.h, #menu ul li.f{
margin: 0 5px 0 0;
padding: 0px;

}
#menu li a{
vertical-align: bottom;
height: 1%;
margin: 0;
padding: 0px;

}

#menu ul li.f a:hover, #menu ul li.f a:focus, #menu ul li.h a:hover, #menu ul li.h a:focus{
padding: 0;
margin: 0;
}
Putting the proper height and width on the gifs in the menu was the first thing to do, which meant taking that OUT of the CSS.

I commented out the stuff you don't need and that includes that conditional comment you had in the html trying to correct the padding issue.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-03-2008, 02:21 PM Re: CSS help need for odd ie6 problem
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
Thanks, I'll implement it next chance I get.
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Old 02-04-2008, 10:37 AM Re: CSS help need for odd ie6 problem
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
While it fixed the background image the menu still doesn't look right in any of IE now.

http://www.alikat-designs.com/client...template2.html
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Old 02-04-2008, 11:11 AM Re: CSS help need for odd ie6 problem
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
Thanks for all your help, I've gone with a text menu now.
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Old 02-04-2008, 04:27 PM Re: CSS help need for odd ie6 problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
While it fixed the background image the menu still doesn't look right in any of IE now
It worked fine on my IE6 with what I gave you

Text menu is much better anyway.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-05-2008, 02:41 PM Re: CSS help need for odd ie6 problem
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
Not on mine it didn't. But it doesn't matter now I don't need any "hacks" with the text menu so that's better in the long run.
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Reply     « Reply to CSS help need for odd ie6 problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47119 seconds with 12 queries