|
| |
|
|
Giomanach
Posts: 6129 Joined: 11/19/2003 From: England Status: offline
|
IE Conditionals, The Second Level - 2/13/2005 19:09:08
We all know of the standard IE conditional, that allows you to add an extra stylesheet for IE only: <!--> <link rel="stylesheet" href="01.css" type="text/css"> <!--> But how many of you knew that there are in fact two forms of IE Conditionals? I found the second one whilst integrating a phpBB forum into one of mysites, examples to come later. I needed to use conditionals, as I was using a fixed background, and having a scrolling DIV for the content, of which, works in all the latest browsers. Here is the home page: http://gioscrib.com/index.php If you view the source, you will notice the following: quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="Giomanach's web about himself, and his experiments within Web Design, his Imaging and Musical works" /> <link href="01.css" rel="stylesheet" type="text/css" title="blue" /> <!--> <link rel="stylesheet" href="02.css" type="text/css" /> <!--> <title>Giomanachs Crib :: Home</title> </head> One seperate stylesheet for all versions of IE, and it does work, even if the nice scrolling effect isn't acheived in all browsers, but when I came to putting the forums on the site, I came across a little problem. One of my background had disappeared, however, the rest of the design was perfectly fine. I had used the same form of conditional statement to declare the IE only styles, but, along with the PHP coding used within the phpBB forums, this is cancelled out, therefore applying those changes to Gecko rendering as well. Not what was wanted. Now, if you view the forum home page: http://gioscrib.com/chill and view the source, you will see a different kind of conditional: quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>Gio's Crib Chillout Centre :: Index</title> <link rel="stylesheet" href="http://gioscrib.com/01.css" type="text/css"> <!-- link rel="stylesheet" href="http://gioscrib.com/02.css" type="text/css" --> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> A different form of IE conditional, although on the same basis, it is a different form. This conditional does work, my forums are proof of it. Just thought I'd let you know... Dan
_____________________________
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|