Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Should we change linking so that conditional comments for IE are not destroyed?

by hostyle (Scribe)
on Nov 05, 2004 at 18:25 UTC ( [id://405575]=note: print w/replies, xml ) Need Help??


in reply to Should we change linking so that conditional comments for IE are not destroyed?

While conditional comments can be handy when you're really really stuck, I don't like to rely on them - mostly because CSS best feature is seperating style from content, and conditional comments must be in the HTML. You can change the entire appearance of a site by editting one CSS file - but if you're using conditional CSS you may have to edit many HTML files. There are other methods of limiting CSS to IE.

/* display for IE only */ * html .whatever { font-weight: 300; /* hide from IE mac \*/ color: #ff0000; /* */ }

Most CSS problems between IE 5, 5.5 and 6 on windows are easily resolved. If you have a particular problem that needs solving, let me know

-- update: to answer demerph --

See 398203

  • Comment on Re: Should we change linking so that conditional comments for IE are not destroyed?
  • Download Code

Replies are listed 'Best First'.
Re^2: Should we change linking so that conditional comments for IE are not destroyed?
by demerphq (Chancellor) on Nov 05, 2004 at 20:16 UTC

    Well, an example off the top of my head is that id like to figure out a way to apply the following style only if the user has IE.

    p.nnt-p-title { width: 70%; } p.nnt-author { width: 28%; }

    This CSS exploits a bug in IE which makes the Recently Active Threads look a lot nicer (IMO). But instead of ignoring it Opera will do totally silly things (as Opera users view the site in quirks mode)

    ---
    demerphq

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://405575]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found