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
Opera reading IE Exception, help!
Old 08-24-2007, 03:23 PM Opera reading IE Exception, help!
Experienced Talker

Posts: 31
Trades: 0
So I have a drop down menu on my site. Apparently, Firefox, opera, IE 6.0, and IE 7.0 all have different ideas on what 114 pixels means.

The script I was using has a exception for IE, where I have to add 10 px to each box to make it display right, now, this would be fine. Except Opera reads those exceptions too, and makes the last menu item drop down to a new line.

HTML Code:
/* set up the default top level links */
.menu ul li a, .menu ul li a:visited {
display:block; 
text-decoration:none; 
color:#FFF; 
width:114px; 
height:24px;
font-weight: none;
color:#FFF; 
border-bottom:8px solid #ffc20e;
background:#527d5d url('img/linkgbg.png') repeat-x bottom; 
padding-left:10px; 
line-height:2.0em;
margin-right:1px;
}

/* hack for IE5.5 to correct the faulty box model */
* html .menu ul li a, .menu ul li a:visited {
width:124px;
}
That bottom part is the IE fix, it says for 5.5, but it works for 6 aswell.

Can I make Opera not read this? If it just read the first one it would be fine.

Any help is appreciated.

Thanks
BagelPirate is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-24-2007, 04:32 PM Re: Opera reading IE Exception, help!
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
Can you give us a link to the page?
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 08-24-2007, 04:41 PM Re: Opera reading IE Exception, help!
Experienced Talker

Posts: 31
Trades: 0
www.arborpronw.com

Set up to work in IE 6 & Firefox currently.
Doesn't display right in Opera
BagelPirate is offline
Reply With Quote
View Public Profile
 
Old 08-24-2007, 07:18 PM Re: Opera reading IE Exception, help!
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Get the hacks OUT of your main CSS file and use CONDITIONAL COMMENTS to target JUST the IE browsers. The *html hack will choke in IE7 too, since the reason for that hack was fixed in IE7.
__________________
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 08-24-2007, 08:55 PM Re: Opera reading IE Exception, help!
Experienced Talker

Posts: 31
Trades: 0
Can you link me to any info about it? Maybe a tut, I can't find any.

Thanks
BagelPirate is offline
Reply With Quote
View Public Profile
 
Old 08-24-2007, 10:24 PM Re: Opera reading IE Exception, help!
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Here's a short tutorial I wrote on conditional comments. I'm sure if you search for "conditional comments" and maybe add in IE or internet explorer to the search you can easily find more.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Opera reading IE Exception, help!
 

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.27144 seconds with 12 queries