Alternating Stylesheets

For a while now, I’ve been considering implementing alternate style sheets. Today while browsing around on google, I discovered a nice javascript file that will really help me out in this task.

For users of Firefox, this script really isn’t necessary. You can simply go to View, Page Style then select the stylesheet that use you wish to use. However if you’re a user of MSIE, this option isn’t available. Having seen a few websites around javascript to do this task, I figured rather than spend hours trying to reinvent the wheel I’d just grab one of these.

I particularly liked this one because it made sure it worked for all browsers, and it stores a cookie so that the preference is saved. All I have to do now is tie that into the database system, and I’m set. Not to mention make some new style sheets…

Source

Tags: ,

  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
read comments

Conditional Comments

Conditional comments only work in Explorer on Windows, and are thus excellently suited to give special instructions meant only for Explorer on Windows. They are supported from Explorer 5 onwards, and it is even possible to distinguish between 5.0, 5.5 and 6.0.

A very good article by Quirksmode.org about conditional commenting for MSIE. Since CSS standards aren’t carried well by he various web browsers, not to mention any names, this comes in quite handy. Sadly only Microsoft supports it, but since they’re the ones not following standards (oh wait, I wasn’t going to mention any names, was I?) it works out well. Simply enclose your style sheet call like so:

<!--[if IE]>
<link rel="stylesheet" href="iestyle.css">
<![endif]-->

And then make your corrections/tweaks in that file. I would go more in depth on the matter, the link details it better than I could.

Reference

Tags: , , , , ,

  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
read comments

Mystical Yellow Form Fields

Several of the webpages I’ve developed have had a strange problem of certain text fields appearing with a yellow background. I spent countless hours looking into this, as it really annoyed me. The strange part was that it only happened with MSIE. After finally giving up, and just accepting this weird bug, I stumble upon the answer by luck. Turns out it was the Googlebar I had installed… well I’ll be damned.

Reference

Tags: , ,

  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
read comments
 Page 71 of 72  « First  ... « 68  69  70  71  72 »