{"id":413,"date":"2012-05-17T21:58:56","date_gmt":"2012-05-17T21:58:56","guid":{"rendered":"http:\/\/www.plugged.in\/?p=413"},"modified":"2012-05-17T21:58:56","modified_gmt":"2012-05-17T21:58:56","slug":"css3-borders-whats-new","status":"publish","type":"post","link":"https:\/\/www.veriteknik.net.tr\/en\/css3-borders-whats-new\/","title":{"rendered":"CSS3 Borders &#8211; What&#8217;s New ?"},"content":{"rendered":"<p>Hi there, it&#8217;s me again.<\/p>\n<p>Today, i&#8217;m gonna talk about CSS3 border features.<\/p>\n<p>By using CSS3, you can;<\/p>\n<ul>\n<li>create rounded borders (it was really a big problem cause we had to use images or junk javascript libraries)<\/li>\n<li>box shadows (it was also a big problem)<\/li>\n<li>use image files as border<\/li>\n<\/ul>\n<p>without using a design program like Adobe Photoshop or some javascript plugins.<\/p>\n<h4>CSS3 Rounded Corners<\/h4>\n<p>In CSS3 creating rounded borders is a piece of cake. Just apply following css code to your elements.<\/p>\n<p>Usage:<\/p>\n<pre class=\"brush: css; gutter: true; first-line: 1\">-webkit-border-radius: 5px 5px 3px 3px;\n-moz-border-radius:\u00a05px 5px 3px 3px;\n -ms-border-radius:\u00a05px 5px 3px 3px;\n -o-border-radius:\u00a05px 5px 3px 3px;\nborder-radius:\u00a05px 5px 3px 3px;<\/pre>\n<p>Syntax:<\/p>\n<blockquote><p>\nborder-radius: top-left-radius, top-right-radius, bottom-right-radius, bottom-left-radius;\n<\/p><\/blockquote>\n<p>You can see there are various codes for each browser.<\/p>\n<p>Briefly,<\/p>\n<p>Mozilla Firefox needs &#8220;-moz-&#8221; prefix,<\/p>\n<p>Chrome and Safari needs &#8220;-webkit-&#8221; prefix,<\/p>\n<p>Opera needs &#8220;-o-&#8221; prefix,<\/p>\n<p>Internet Explorer needs &#8220;-ms-&#8221; prefix (will be deprecated),<\/p>\n<p>and for last &#8220;border-radius&#8221; code is used for general CSS3 border styling.<\/p>\n<h4>CSS3 Box Shadow<\/h4>\n<p>With CSS3 you can use &#8220;box-shadow&#8221; property to add shadow to boxes.<\/p>\n<p>Usage:<\/p>\n<pre class=\"brush: css; gutter: true; first-line: 1\">-webkit-box-shadow: 0 0 5px #d5d5d5;\n -moz-box-shadow: 0 0 5px #d5d5d5;\n box-shadow: 0 0 5px #d5d5d5;<\/pre>\n<p>Syntax:<\/p>\n<blockquote><p>box-shadow:\u00a0<em>h-shadow v-shadow blur spread color<\/em>\u00a0inset;<\/p><\/blockquote>\n<p>As you see, you should add &#8220;-webkit-&#8221; prefix for Safari and Chrome, &#8220;-moz-&#8221; prefix for Mozilla Firefox and lastly &#8220;box-shadow&#8221; property for general CSS3 Shadow effects.<\/p>\n<p>Syntax:<\/p>\n<blockquote><p>box-shadow: (horizontal dimension of shadow, can be a negative value), (vertical dimension of shadow, also can be a negative value), (shadow blur amount), (hex code of shadow color)<\/p><\/blockquote>\n<h4>CSS3 Border Image<\/h4>\n<p>To create border images for your elements, you should use border-image property.<\/p>\n<p>Right now, Internet Explorer does not support border-image property.<\/p>\n<p>For other browsers you should add prefixes just like other border properties(ex. &#8220;-moz-&#8220;, &#8220;-webkit-&#8220;, &#8220;-o-&#8220;)<\/p>\n<p>Usage:<\/p>\n<pre class=\"brush: css; gutter: true; first-line: 1\">-moz-border-image:url(border.png) 30 30 round;\n -webkit-border-image:url(border.png) 30 30 round;\n -o-border-image:url(border.png) 30 30 round;\n border-image:url(border.png) 30 30 round;<\/pre>\n<p>Syntax:<\/p>\n<blockquote><p>border-image:\u00a0<em>source slice width outset repeat<\/em>;<\/p><\/blockquote>\n<p>border-image-source: the path to the border image file.<\/p>\n<p>border-image-slice: inward offsets of the border image.<\/p>\n<p>border-image-width: width of border image.<\/p>\n<p>border-image-outset: the amount by which the border image area extends beyond the border box.<\/p>\n<p>border-image-repeat: type of repetition, repeat, round, stretch.<\/p>\n<p>That&#8217;s all for now.<\/p>\n<p>I&#8217;ll tell more about javascript equivalents of CSS border properties for fallback support \u00a0and other CSS3 features later.<\/p>\n<p>Enjoy your CSS3 styles, and have a nice day.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi there, it&#8217;s me again. Today, i&#8217;m gonna talk about CSS3 border features. By using CSS3, you can; create rounded borders (it was really a big problem cause we had to use images or junk javascript libraries) box shadows (it was also a big problem) use image files as border without using a design program [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[508,435],"tags":[504,505,506,507,509,510,511,512],"yst_prominent_words":[2166,2151,2162,2168,2160,2152,2153,2159,2164,2158,2156,2155,2161,2165,2169,2170,2154,2163,2167,2157],"class_list":["post-413","post","type-post","status-publish","format-standard","hentry","category-css","category-web-developer","tag-border-image","tag-border-radius","tag-box-shadow","tag-cascading-stylesheets","tag-css-2","tag-css3","tag-developer","tag-web"],"jetpack_featured_media_url":"","uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"ckaraca","author_link":"https:\/\/www.veriteknik.net.tr\/en\/author\/ckaraca\/"},"uagb_comment_info":0,"uagb_excerpt":"Hi there, it&#8217;s me again. Today, i&#8217;m gonna talk about CSS3 border features. By using CSS3, you can; create rounded borders (it was really a big problem cause we had to use images or junk javascript libraries) box shadows (it was also a big problem) use image files as border without using a design program&hellip;","_links":{"self":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/comments?post=413"}],"version-history":[{"count":0,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/413\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/media?parent=413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/categories?post=413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/tags?post=413"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/yst_prominent_words?post=413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}