On 3/22/07, Rolf Mortenson <[EMAIL PROTECTED]> wrote: > > I've stumbled on a bug that affects Firefox on Mac (not Win), and > confirmed it in the mozilla bug logs. I've also found an apparent fix > involving our good friend overflow: auto, but I'd prefer to feed it > only to Firefox mac... I'm so used to targeting IE, that I can't > think of how you would target one flavor of Firefox for this one > little rule. Is there an easy way to do this? > > Thanks! > > (for those curious about the bug: > https://bugzilla.mozilla.org/show_bug.cgi?id=354761 > https://bugzilla.mozilla.org/show_bug.cgi?id=187435#c79 (the fix) > ______________________________________________________________________ > css-discuss [EMAIL PROTECTED] > http://www.css-discuss.org/mailman/listinfo/css-d > IE7 information -- http://css-discuss.incutio.com/?page=IE7 > List wiki/FAQ -- http://css-discuss.incutio.com/ > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
If you are using PHP you can use HTTP_USER_AGENT to sniff. Here's a quick and dirty script. If not you can use Javascript - try googling for Javascript sniffers. Plenty out there! <?php // Get the user agent $userAgent = $_SERVER['HTTP_USER_AGENT']; // Set up what we are looking for $browser = "Firefox"; $os = "Mac OS X"; $version = ""; // You could add version or anything else you are looking for here // Check the string is in the user agent $browserTest = strpos($userAgent, $browser); $osTest = strpos($userAgent, $os); // If both conditions are true we know it is Firefox for Mac // Add more conditions if you are testing for anything else if ($browserTest == true && $os == true) { echo "This is Firefox on the Mac"; // Your HTML to serve the stylesheet goes here } else { echo "This is not Firefox on the Mac"; } ?> Cheers George www.shapshed.com | Web and Graphic Design ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/