{"id":75,"date":"2008-12-16T10:33:08","date_gmt":"2008-12-16T08:33:08","guid":{"rendered":"http:\/\/kavdesign.net\/wordpress\/?p=75"},"modified":"2008-12-16T10:34:37","modified_gmt":"2008-12-16T08:34:37","slug":"how-to-add-an-if-statement-for-ie-custom-css-in-joomla-template-indexphp","status":"publish","type":"post","link":"https:\/\/www.kavdesign.net\/blog\/coding\/how-to-add-an-if-statement-for-ie-custom-css-in-joomla-template-indexphp\/","title":{"rendered":"How to add an if statement for IE custom CSS in Joomla template index.php"},"content":{"rendered":"<p>Sometimes the your website looks different in IE and in Firefox. To avoid the problem put this piece of code in your Joomla template index.php file to overwrite the CSS for the div (in this example search-button):<\/p>\n<p>&lt;!&#8211;[if lte IE 6]&gt;<\/p>\n<p>&lt;style type=&#8221;text\/css&#8221;&gt;<\/p>\n<p>#search-button{<\/p>\n<p>padding-top:6px;<\/p>\n<p>}<\/p>\n<p>&lt;\/style&gt;<\/p>\n<p>&lt;![endif]&#8211;&gt;<\/p>\n<p>&lt;!&#8211;[if gte IE 7.0]&gt;<\/p>\n<p>&lt;style type=&#8221;text\/css&#8221;&gt;<\/p>\n<p>#search-button{<\/p>\n<p>padding-top:6px;<\/p>\n<p>}<\/p>\n<p>&lt;\/style&gt;<\/p>\n<p>&lt;![endif]&#8211;&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes the your website looks different in IE and in Firefox. To avoid the problem put this piece of code in your Joomla template index.php&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.kavdesign.net\/blog\/coding\/how-to-add-an-if-statement-for-ie-custom-css-in-joomla-template-indexphp\/\">Continue reading<span class=\"screen-reader-text\">How to add an if statement for IE custom CSS in Joomla template index.php<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[9],"tags":[],"class_list":["post-75","post","type-post","status-publish","format-standard","hentry","category-coding","entry"],"_links":{"self":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":0,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}