{"id":2195,"date":"2008-05-06T15:34:32","date_gmt":"2008-05-06T19:34:32","guid":{"rendered":"http:\/\/klishis.com\/notreally\/?p=2195"},"modified":"2008-05-06T22:52:21","modified_gmt":"2008-05-07T02:52:21","slug":"conditional-comments","status":"publish","type":"post","link":"https:\/\/klishis.com\/notreally\/archives\/2195","title":{"rendered":"Conditional Comments"},"content":{"rendered":"<p>HA!<\/p>\n<p>I just discovered something that makes my life much easier. Microsoft added &#8220;Conditional Comments&#8221; into their browsers, so I can do all the cool CSS stuff I want, and then just have a boring page that doesn&#8217;t use the cool stuff that IE (and only IE) doesn&#8217;t support.<\/p>\n<p>Simply create a style sheet only for IE, that doesn&#8217;t have all the neat code supported by every other browser out there, then the following code (where <em>IEsucks.css<\/em> is the name of your less cool style sheet) to the head section of your HTML page:<\/p>\n<p>&lt;!&#8211;[if IE]&gt;<br \/>\n\t&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;IEsucks.css&#8221; \/&gt;<br \/>\n&lt;![endif]&#8211;&gt;<\/p>\n<p>That&#8217;s it! I can now use fixed positioning with impunity! MUAHAHAHA!<\/p>\n<p>(See <a href=\"http:\/\/klishis.com\/Books\/Fantasy.php\">here<\/a> for what I can do if I get to ignore IE not following the rules.)<\/p>\n<p><em>ADDENDUM the First<\/em>:<br \/>\nGet comment code doesn&#8217;t show up when you post it. Funny that. <\/p>\n<p>(sigh) <\/p>\n<p>Code is now fixed and visible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HA! I just discovered something that makes my life much easier. Microsoft added &#8220;Conditional Comments&#8221; into their browsers, so I can do all the cool CSS stuff I want, and then just have a boring page that doesn&#8217;t use the cool stuff that IE (and only IE) doesn&#8217;t support. Simply create a style sheet only [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[17],"tags":[],"class_list":["post-2195","post","type-post","status-publish","format-standard","hentry","category-computers-technology"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pefxA-zp","_links":{"self":[{"href":"https:\/\/klishis.com\/notreally\/wp-json\/wp\/v2\/posts\/2195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/klishis.com\/notreally\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/klishis.com\/notreally\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/klishis.com\/notreally\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/klishis.com\/notreally\/wp-json\/wp\/v2\/comments?post=2195"}],"version-history":[{"count":0,"href":"https:\/\/klishis.com\/notreally\/wp-json\/wp\/v2\/posts\/2195\/revisions"}],"wp:attachment":[{"href":"https:\/\/klishis.com\/notreally\/wp-json\/wp\/v2\/media?parent=2195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/klishis.com\/notreally\/wp-json\/wp\/v2\/categories?post=2195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/klishis.com\/notreally\/wp-json\/wp\/v2\/tags?post=2195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}