|
|
|
08-01-2004, 04:49 PM
|
Postid: 115950
|
|
Registered User
Join Date: Nov 2003
Location: Pensacola, FL
Posts: 539
|
I personally don't like to deliver different stylesheets using HTML hacks, since it seems like written in stone. If I had to deliver a different style sheet to IE 5 I'd use the Mid Pass Filter which sort of isolates the hack. I'd use this over the box model hacks. This way, once IE 5 is no longer used in the World, you can simply remove the stylesheet and the hack, instead of removing it from hundreds of pages. Here is an example:
@media tty {
i{content:"\";/*" "*/}} @import 'ie5win.css'; /*";}
}/* */
Every browser will ignore the rule, except for IE5.
__________________
//marv
|
|
|
08-01-2004, 06:17 PM
|
Postid: 115957
|
|
Registered User
Forum Notability:
238 pts: Ambassador of Goodwill
[ Post Feedback]
Join Date: May 2003
Posts: 1,489
|
Marv,
Conditional comments are not HTML hacks.
<!--[if IE 5.0]>
<style>
@import 'ie5.css';
</style>
<![endif]-->
is also valid as is anything between the conditional comments, be it HTML, CSS, JS.
Quote:
|
This way, once IE 5 is no longer used in the World, you can simply remove the stylesheet and the hack, instead of removing it from hundreds of pages.
|
If you have to remove anything from hundreds of pages then there is something seriously wrong with your design structure, includes should be used on every web site to avoid duplicated content.
How do you know your CSS hack will not break a new version of IE or some other browser in the future?.. you don't.
Conditional comments for IE specific problems is the most robust solution, CSS hacks are just that and have the potential to break future browsers, Conditional Comments don't carry that risk.
Continue to use whatever hack you want to but I'll be opting for the best solution for the job and Conditional Comments are exactly that.
Pete
|
|
|
08-01-2004, 06:45 PM
|
Postid: 115958
|
|
Site Owner
Join Date: Apr 2002
Location: San Antonio, Texas
Posts: 7,204
|
I don't know which menu script you're using, but fwiw with a Milonic menu I solved the "menu collapsing in Opera" problem by replacing all the spaces in the menu labels with non-breaking spaces (& nbsp;).
I'm not sure why this worked, but it did.
Andi
|
|
|
08-01-2004, 06:53 PM
|
Postid: 115959
|
|
Site Owner
Join Date: Apr 2002
Location: San Antonio, Texas
Posts: 7,204
|
Oh and the beta page menu is still collapsing in my v 7.2 Opera, as of this writing.
|
|
|
08-01-2004, 06:59 PM
|
Postid: 115960
|
|
Registered User
Join Date: Nov 2003
Location: Pensacola, FL
Posts: 539
|
Quote:
|
How do you know your CSS hack will not break a new version of IE or some other browser in the future?.. you don't.
|
I agree, there is no way to know that CSS hacks won't break in future browsers, and using CSS hacks should be avoided as much as possible. But when I need to give a broswer a different style I favor CSS hacks, because I don't like touching at the HTML after I've set my mind, it's just my personal preference.
Conditional comments (CC) are great, and I've used it on a page in my website where IE was misbehaving, and that I found CCs to be the easiest solution. It all has to do with personal preference and the best tool for the job. 
__________________
//marv
|
|
|
08-01-2004, 07:09 PM
|
Postid: 115961
|
|
Registered User
Join Date: Nov 2003
Location: Pensacola, FL
Posts: 539
|
Quote:
|
Oh and the beta page menu is still collapsing in my v 7.2 Opera, as of this writing.
|
I'm not too sure, but what do you mean by collapsing? Could I see a screenshot or something? I've looked at the page in Opera and don't see anything different from the other browsers.
__________________
//marv
|
|
|
08-01-2004, 07:45 PM
|
Postid: 115962
|
|
Site Owner
Join Date: Apr 2002
Location: San Antonio, Texas
Posts: 7,204
|
I reloaded the page just 2 minutes before making the screenshot and posting this message. The pointer does not show in the screenshot but as you can see all the menus are visible, just collapsed upon each other. This is nearly identical to the problem I had with my Milonic Menu in Opera until I replaced all the spaces with non-breaking spaces.
Andi
|
|
|
08-01-2004, 08:05 PM
|
Postid: 115963
|
|
Registered User
Join Date: Nov 2003
Location: Pensacola, FL
Posts: 539
|
Very strange. I've looked at the page now in Opera 7.23 (the last 7.2 version), it looks just fine and I haven't made any changes to the page or CSS since my second update this afternoon. My guess is that you're using an older buggier 7.2 version. Browsers drive me crazy
But I assume 7.2 users upgrade to 7.5 
__________________
//marv
|
|
|
08-01-2004, 08:28 PM
|
Postid: 115964
|
|
Site Owner
Join Date: Apr 2002
Location: San Antonio, Texas
Posts: 7,204
|
I just downloaded the most recent Opera and am now seeing the menu properly...
I rechecked the old Opera and found that it was not 7.2 but 7.02. quel difference!
I suppose we just must be resigned to the fact that some people just won't see things the way we do... Very much like the real world actually.
Andi
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 08:12 AM.
|
| |
|
|
|