{"id":70,"date":"2010-12-13T21:29:24","date_gmt":"2010-12-14T02:29:24","guid":{"rendered":"http:\/\/localhost\/aarontgrogg\/practicalcss3\/"},"modified":"2011-09-18T15:02:23","modified_gmt":"2011-09-18T19:02:23","slug":"css3-pie","status":"publish","type":"page","link":"https:\/\/aarontgrogg.com\/practicalcss3\/border-radius\/css3-pie\/","title":{"rendered":"CSS3 PIE"},"content":{"rendered":"<style>div.entry-content div { margin: .75em 0; padding: 10px; border: 3px solid #444; background: #fff;}\n#example1 {\n\t-moz-border-radius: 15px; \/* Firefox *\/\n\t-webkit-border-radius: 15px; \/* Safari, Chrome *\/\n\tborder-radius: 15px; \/* Opera, IE9+, W3C *\/\n\t\/* fix bg bleed: http:\/\/tumble.sneak.co.nz\/post\/928998513\/fixing-the-background-bleed *\/\n\t-moz-background-clip: padding;\n\t-webkit-background-clip: padding-box;\n\tbackground-clip: padding-box;\n}\nhtml.lte8 #example1 {\n\tbehavior: url('..\/..\/wp-content\/themes\/practicalcss3\/css3-pie.htc'); \/* IE6-8 *\/\n\tzoom: 1; \/* 'hasLayout' required for HTC method *\/\n}\n#example2 a {\n\tbackground: #e07;\n\tborder: 2px solid #000;\n\tcolor: #000;\n\tdisplay: inline;\n\tpadding: 2px 8px;\n\t-moz-border-radius: 15px; \/* Firefox *\/\n\t-webkit-border-radius: 15px; \/* Safari, Chrome *\/\n\tborder-radius: 15px; \/* Opera, IE9+, W3C *\/\n\t\/* fix bg bleed: http:\/\/tumble.sneak.co.nz\/post\/928998513\/fixing-the-background-bleed *\/\n\t-moz-background-clip: padding;\n\t-webkit-background-clip: padding-box;\n\tbackground-clip: padding-box;\n}\n#example2 a:hover {\n\tcolor: #fff;\n}\nhtml.lte8 #example2 a {\n\tbehavior: url('..\/..\/wp-content\/themes\/practicalcss3\/css3-pie.htc'); \/* IE6-8 *\/\n\tzoom: 1; \/* 'hasLayout' required for HTC method *\/\n}\n#example3 a {\n\tbackground: #e07;\n\tborder: 2px solid #000;\n\tcolor: #000;\n\tdisplay: block;\n\twidth: 58px;\n\tline-height: 58px;\n\ttext-align: center;\n\tvertical-align: middle;\n\t-moz-border-radius: 30px; \/* Firefox *\/\n\t-webkit-border-radius: 30px; \/* Safari, Chrome *\/\n\tborder-radius: 30px; \/* Opera, IE9+, W3C *\/\n\t\/* fix bg bleed: http:\/\/tumble.sneak.co.nz\/post\/928998513\/fixing-the-background-bleed *\/\n\t-moz-background-clip: padding;\n\t-webkit-background-clip: padding-box;\n\tbackground-clip: padding-box;\n}\n#example3 a:hover {\n\tcolor: #fff;\n}\nhtml.lte8 #example3 a {\n\tbehavior: url('..\/..\/wp-content\/themes\/dark_and_stormy\/css3-pie.htc'); \/* IE6-8 *\/\n\tzoom: 1; \/* 'hasLayout' required for HTC method *\/\n}\n<\/style>\n<p><a href=\"http:\/\/css3pie.com\/\">CSS3 <abbr title=\"Progressive Internet Explorer\">PIE<\/abbr><\/a> is an <abbr title=\"HTML Component\">HTC<\/abbr> file that allows you to use standard CSS3 (plus vendor prefixes) to get features such as linear background gradients, rounded corners and drop-shadows in all browsers.  HTC files are applied using a <code>behavior<\/code> in your CSS, which is IE-only, and does <strong>not<\/strong> validate.<\/p>\n<pre>\r\n#example1 {\r\n\t-moz-border-radius: 15px; \/* Firefox *\/\r\n\t-webkit-border-radius: 15px; \/* Safari, Chrome *\/\r\n\tborder-radius: 15px; \/* Opera, IE9+, W3C *\/\r\n\t\/* fix bg bleed: http:\/\/tumble.sneak.co.nz\/post\/928998513\/fixing-the-background-bleed *\/\r\n\t-moz-background-clip: padding;\r\n\t-webkit-background-clip: padding-box;\r\n\tbackground-clip: padding-box;\r\n}\r\nhtml.lte8 #example1 {\r\n\tbehavior: url('..\/..\/wp-content\/themes\/practicalcss3\/css3-pie.htc'); \/* IE6-8 *\/\r\n\tzoom: 1; \/* 'hasLayout' required for HTC method *\/\r\n}\r\n<\/pre>\n<div id=\"example1\">\n<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<\/p>\n<\/p><\/div>\n<p>We can create a cool looking button:<\/p>\n<pre>\r\n#example2 a {\r\n\tbackground: #e07;\r\n\tborder: 2px solid #000;\r\n\tcolor: #000;\r\n\tdisplay: inline;\r\n\tpadding: 2px 8px;\r\n\t-moz-border-radius: 15px; \/* Firefox *\/\r\n\t-webkit-border-radius: 15px; \/* Safari, Chrome *\/\r\n\tborder-radius: 15px; \/* Opera, IE9+, W3C *\/\r\n\t\/* fix bg bleed: http:\/\/tumble.sneak.co.nz\/post\/928998513\/fixing-the-background-bleed *\/\r\n\t-moz-background-clip: padding;\r\n\t-webkit-background-clip: padding-box;\r\n\tbackground-clip: padding-box;\r\n}\r\n#example2 a:hover {\r\n\tcolor: #fff;\r\n}\r\nhtml.lte8 #example2 a {\r\n\tbehavior: url('..\/..\/wp-content\/themes\/practicalcss3\/css3-pie.htc'); \/* IE6-8 *\/\r\n\tzoom: 1; \/* 'hasLayout' required for HTC method *\/\r\n}\r\n<\/pre>\n<div id=\"example2\">\n\t\t\t\t\t<a href=\"#\">Vote Now!<\/a>\n\t\t\t\t<\/div>\n<p>Or even a sticker:<\/p>\n<pre>\r\n#example3 a {\r\n\tbackground: #e07;\r\n\tborder: 2px solid #000;\r\n\tcolor: #000;\r\n\tdisplay: block;\r\n\twidth: 58px;\r\n\tline-height: 58px;\r\n\ttext-align: center;\r\n\tvertical-align: middle;\r\n\t-moz-border-radius: 30px; \/* Firefox *\/\r\n\t-webkit-border-radius: 30px; \/* Safari, Chrome *\/\r\n\tborder-radius: 30px; \/* Opera, IE9+, W3C *\/\r\n\t\/* fix bg bleed: http:\/\/tumble.sneak.co.nz\/post\/928998513\/fixing-the-background-bleed *\/\r\n\t-moz-background-clip: padding;\r\n\t-webkit-background-clip: padding-box;\r\n\tbackground-clip: padding-box;\r\n}\r\n#example3 a:hover {\r\n\tcolor: #fff;\r\n}\r\nhtml.lte8 #example3 a {\r\n\tbehavior: url('..\/..\/wp-content\/themes\/dark_and_stormy\/css3-pie.htc'); \/* IE6-8 *\/\r\n\tzoom: 1; \/* 'hasLayout' required for HTC method *\/\r\n}\r\n<\/pre>\n<div id=\"example3\">\n\t\t\t\t\t<a href=\"#\">Wow!<\/a>\n\t\t\t\t<\/div>\n","protected":false},"excerpt":{"rendered":"<p>CSS3 PIE is an HTC file that allows you to use standard CSS3 (plus vendor prefixes) to get features such as linear background gradients, rounded corners and drop-shadows in all browsers. HTC files are applied using a behavior in your &hellip; <a href=\"https:\/\/aarontgrogg.com\/practicalcss3\/border-radius\/css3-pie\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":37,"menu_order":1,"comment_status":"open","ping_status":"open","template":"","meta":{"webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"class_list":["post-70","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/aarontgrogg.com\/practicalcss3\/wp-json\/wp\/v2\/pages\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aarontgrogg.com\/practicalcss3\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/aarontgrogg.com\/practicalcss3\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/aarontgrogg.com\/practicalcss3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aarontgrogg.com\/practicalcss3\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":0,"href":"https:\/\/aarontgrogg.com\/practicalcss3\/wp-json\/wp\/v2\/pages\/70\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/aarontgrogg.com\/practicalcss3\/wp-json\/wp\/v2\/pages\/37"}],"wp:attachment":[{"href":"https:\/\/aarontgrogg.com\/practicalcss3\/wp-json\/wp\/v2\/media?parent=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}