{"id":863,"date":"2018-09-21T12:16:20","date_gmt":"2018-09-21T11:16:20","guid":{"rendered":"https:\/\/www.orchidbox.com\/?p=863"},"modified":"2018-09-21T12:16:20","modified_gmt":"2018-09-21T11:16:20","slug":"ie-hack-for-max-width-css-property","status":"publish","type":"post","link":"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/","title":{"rendered":"IE Hack For Max-Width CSS Property"},"content":{"rendered":"<p>IE does not recognize the max-width CSS property. This piece of code will fix it for IE6 and IE7. This code snip will make the maximum width for the html object 900 pixels.<\/p>\n<p>.cssClass<br \/>\n{<br \/>\nwidth:expression(document.body.clientWidth > 900? &#8220;900px&#8221;: &#8220;auto&#8221; );<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IE does not recognize the max-width CSS property. This piece of code will fix it for IE6 and IE7. This code snip will make the maximum width for the html object 900 pixels. .cssClass { width:expression(document.body.clientWidth > 900? &#8220;900px&#8221;: &#8220;auto&#8221; ); }<\/p>\n","protected":false},"author":1,"featured_media":864,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-863","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-content"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>IE Hack For Max-Width CSS Property - Orchid Box Insights<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"IE Hack For Max-Width CSS Property - Orchid Box Insights\" \/>\n<meta property=\"og:description\" content=\"IE does not recognize the max-width CSS property. This piece of code will fix it for IE6 and IE7. This code snip will make the maximum width for the html object 900 pixels. .cssClass { width:expression(document.body.clientWidth &gt; 900? &#8220;900px&#8221;: &#8220;auto&#8221; ); }\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/\" \/>\n<meta property=\"og:site_name\" content=\"Orchid Box Insights\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-21T11:16:20+00:00\" \/>\n<meta name=\"author\" content=\"frank\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"frank\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/\"},\"author\":{\"name\":\"frank\",\"@id\":\"https:\/\/www.orchidbox.com\/insights\/#\/schema\/person\/d0e37cec33581140df37c170d90868db\"},\"headline\":\"IE Hack For Max-Width CSS Property\",\"datePublished\":\"2018-09-21T11:16:20+00:00\",\"dateModified\":\"2018-09-21T11:16:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/\"},\"wordCount\":46,\"publisher\":{\"@id\":\"https:\/\/www.orchidbox.com\/insights\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/#primaryimage\"},\"thumbnailUrl\":\"\",\"articleSection\":[\"Content\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/\",\"url\":\"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/\",\"name\":\"IE Hack For Max-Width CSS Property - Orchid Box Insights\",\"isPartOf\":{\"@id\":\"https:\/\/www.orchidbox.com\/insights\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/#primaryimage\"},\"thumbnailUrl\":\"\",\"datePublished\":\"2018-09-21T11:16:20+00:00\",\"dateModified\":\"2018-09-21T11:16:20+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.orchidbox.com\/insights\/#website\",\"url\":\"https:\/\/www.orchidbox.com\/insights\/\",\"name\":\"Orchid Box Insights\",\"description\":\"Whether you&#039;re navigating the intricacies of SEO, exploring the nuances of pay-per-click advertising, or crafting compelling marketing campaigns, our posts are designed to provide you with the knowledge and tools necessary for success. At Orchid Box, we pride ourselves on delivering industry-leading advice that enhances website visibility, engages audiences, and maximizes return on investment. Stay ahead of the curve with our in-depth articles on SEO, PPC, and digital marketing.\",\"publisher\":{\"@id\":\"https:\/\/www.orchidbox.com\/insights\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.orchidbox.com\/insights\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.orchidbox.com\/insights\/#organization\",\"name\":\"Orchid Box\",\"url\":\"https:\/\/www.orchidbox.com\/insights\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.orchidbox.com\/insights\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wwww.orchidbox.com\/insights\/wp-content\/uploads\/2024\/06\/symbol.png\",\"contentUrl\":\"https:\/\/wwww.orchidbox.com\/insights\/wp-content\/uploads\/2024\/06\/symbol.png\",\"width\":401,\"height\":400,\"caption\":\"Orchid Box\"},\"image\":{\"@id\":\"https:\/\/www.orchidbox.com\/insights\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.orchidbox.com\/insights\/#\/schema\/person\/d0e37cec33581140df37c170d90868db\",\"name\":\"frank\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.orchidbox.com\/insights\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/45b74e4b9bbcfe0dcf2d7dca07222cc3eccf37085a34710d2ec2ea42d00b3c25?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/45b74e4b9bbcfe0dcf2d7dca07222cc3eccf37085a34710d2ec2ea42d00b3c25?s=96&d=mm&r=g\",\"caption\":\"frank\"},\"sameAs\":[\"https:\/\/orchidbox.com\/insights\/\"],\"url\":\"https:\/\/www.orchidbox.com\/insights\/author\/frank\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"IE Hack For Max-Width CSS Property - Orchid Box Insights","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/","og_locale":"en_US","og_type":"article","og_title":"IE Hack For Max-Width CSS Property - Orchid Box Insights","og_description":"IE does not recognize the max-width CSS property. This piece of code will fix it for IE6 and IE7. This code snip will make the maximum width for the html object 900 pixels. .cssClass { width:expression(document.body.clientWidth > 900? &#8220;900px&#8221;: &#8220;auto&#8221; ); }","og_url":"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/","og_site_name":"Orchid Box Insights","article_published_time":"2018-09-21T11:16:20+00:00","author":"frank","twitter_card":"summary_large_image","twitter_misc":{"Written by":"frank"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/#article","isPartOf":{"@id":"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/"},"author":{"name":"frank","@id":"https:\/\/www.orchidbox.com\/insights\/#\/schema\/person\/d0e37cec33581140df37c170d90868db"},"headline":"IE Hack For Max-Width CSS Property","datePublished":"2018-09-21T11:16:20+00:00","dateModified":"2018-09-21T11:16:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/"},"wordCount":46,"publisher":{"@id":"https:\/\/www.orchidbox.com\/insights\/#organization"},"image":{"@id":"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/#primaryimage"},"thumbnailUrl":"","articleSection":["Content"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/","url":"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/","name":"IE Hack For Max-Width CSS Property - Orchid Box Insights","isPartOf":{"@id":"https:\/\/www.orchidbox.com\/insights\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/#primaryimage"},"image":{"@id":"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/#primaryimage"},"thumbnailUrl":"","datePublished":"2018-09-21T11:16:20+00:00","dateModified":"2018-09-21T11:16:20+00:00","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.orchidbox.com\/insights\/ie-hack-for-max-width-css-property\/#primaryimage","url":"","contentUrl":""},{"@type":"WebSite","@id":"https:\/\/www.orchidbox.com\/insights\/#website","url":"https:\/\/www.orchidbox.com\/insights\/","name":"Orchid Box Insights","description":"Whether you&#039;re navigating the intricacies of SEO, exploring the nuances of pay-per-click advertising, or crafting compelling marketing campaigns, our posts are designed to provide you with the knowledge and tools necessary for success. At Orchid Box, we pride ourselves on delivering industry-leading advice that enhances website visibility, engages audiences, and maximizes return on investment. Stay ahead of the curve with our in-depth articles on SEO, PPC, and digital marketing.","publisher":{"@id":"https:\/\/www.orchidbox.com\/insights\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.orchidbox.com\/insights\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.orchidbox.com\/insights\/#organization","name":"Orchid Box","url":"https:\/\/www.orchidbox.com\/insights\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.orchidbox.com\/insights\/#\/schema\/logo\/image\/","url":"https:\/\/wwww.orchidbox.com\/insights\/wp-content\/uploads\/2024\/06\/symbol.png","contentUrl":"https:\/\/wwww.orchidbox.com\/insights\/wp-content\/uploads\/2024\/06\/symbol.png","width":401,"height":400,"caption":"Orchid Box"},"image":{"@id":"https:\/\/www.orchidbox.com\/insights\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.orchidbox.com\/insights\/#\/schema\/person\/d0e37cec33581140df37c170d90868db","name":"frank","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.orchidbox.com\/insights\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/45b74e4b9bbcfe0dcf2d7dca07222cc3eccf37085a34710d2ec2ea42d00b3c25?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/45b74e4b9bbcfe0dcf2d7dca07222cc3eccf37085a34710d2ec2ea42d00b3c25?s=96&d=mm&r=g","caption":"frank"},"sameAs":["https:\/\/orchidbox.com\/insights\/"],"url":"https:\/\/www.orchidbox.com\/insights\/author\/frank\/"}]}},"_links":{"self":[{"href":"https:\/\/www.orchidbox.com\/insights\/wp-json\/wp\/v2\/posts\/863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.orchidbox.com\/insights\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.orchidbox.com\/insights\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.orchidbox.com\/insights\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.orchidbox.com\/insights\/wp-json\/wp\/v2\/comments?post=863"}],"version-history":[{"count":0,"href":"https:\/\/www.orchidbox.com\/insights\/wp-json\/wp\/v2\/posts\/863\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.orchidbox.com\/insights\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.orchidbox.com\/insights\/wp-json\/wp\/v2\/media?parent=863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.orchidbox.com\/insights\/wp-json\/wp\/v2\/categories?post=863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.orchidbox.com\/insights\/wp-json\/wp\/v2\/tags?post=863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}