{"id":5830,"date":"2024-04-14T12:26:28","date_gmt":"2024-04-14T04:26:28","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=5830"},"modified":"2024-04-14T12:26:28","modified_gmt":"2024-04-14T04:26:28","slug":"enhanced-borders-on-the-web","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/enhanced-borders-on-the-web\/","title":{"rendered":"Enhanced borders on the web"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p>Outlines determine the perimeter of an element and establish borders on one or more sides of the element&#8217;s boundary. You have the ability to specify the border and perimeter of any chosen element in the Style section.<\/p>\n<p><strong>In this teaching:<\/strong><\/p>\n<ol>\n<li>Perimeter<\/li>\n<li>Design<\/li>\n<li>Thickness<\/li>\n<li>Shade<\/li>\n<li>Forms<\/li>\n<li>Edges &amp; corners<\/li>\n<li>Facets<\/li>\n<li>Transition animations<\/li>\n<\/ol>\n<p>Borders enable you to produce outlines on one or more sides of an element&#8217;s boundary. Borders occupy space, extending the size of an element. In instances of elements with a defined size, borders will exert pressure on the content within.<\/p>\n<p>To incorporate a border effect without enlarging an element&#8217;s size, introduce an internal or external box shadow with a blur value of 0.<\/p>\n<h2>Perimeter<\/h2>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b948b0bdd37d12dce5d85a_5f5f933360f1892f522cc358_template252017.png\" loading=\"lazy\" title=\"64b948b0bdd37d12dce5d85a_5f5f933360f1892f522cc358_template252017\"><\/div>\n<\/figure>\n<p>Determine the perimeter of all corners or individual corners of an element to create rounded corners.<\/p>\n<p>By default, the perimeter is specified in pixels (px). To utilize percentages, input the percentage value and symbol (%) into any border input field. You can also utilize any CSS unit from the unit dropdown.<\/p>\n<p><strong>Find out more about<\/strong><strong>input values and units<\/strong><strong>.<\/strong><\/p>\n<h2>Design<\/h2>\n<p>The design attribute establishes the type of border that will encircle an element. A border can be solid, dashed, or dotted. You can also conceal your border settings by setting the design to none.<\/p>\n<p>Certain pre-existing elements come with default borders, like form input fields and block quotes. You can eliminate default borders by setting the border design to none.<\/p>\n<h2>Thickness<\/h2>\n<p>The thickness dictates the width of a border. This value can utilize any CSS unit from the options available in the unit dropdown.<\/p>\n<p><strong>Learn more about<\/strong><strong>input values and units<\/strong><strong>.<\/strong><\/p>\n<h2>Shade<\/h2>\n<p>In the <strong>Style section<\/strong> &gt; <strong>Color<\/strong>, you can specify the color and transparency for any element&#8217;s border in border settings. Adjusting the color of a border side results in a bevel or picture frame effect.<\/p>\n<h2>Forms<\/h2>\n<p>By default, setting a radius for an element will apply the value to all corners. You can set a value by sliding the slider or entering a value in the input field.<\/p>\n<p>Employ pixel values for rounded corners and percentages for elliptical corners with the same proportion.<\/p>\n<h3>Capsule forms<\/h3>\n<p>To create capsule shapes, establish your radius to a pixel value larger than half the element&#8217;s shortest dimension. A higher value like 500 generally works if you wish to avoid complex calculations.<\/p>\n<h3>Ellipses<\/h3>\n<p>For ellipses, set the radius to 50%. Percentages are based on the width and height of an element<\/p>\n<blockquote><p>Note: Ellipses may seem inconsistent when you have elements with differing dimensions.<\/p><\/blockquote>\n<h3>Circles<\/h3>\n<p>To form circles, set the radius to 50% and ensure the element&#8217;s width and height are identical.<\/p>\n<h3>Distinct shapes<\/h3>\n<p>You can establish varying values on each corner to produce unique shapes.<\/p>\n<h3>Rectangle to circle<\/h3>\n<p>To convert a rectangular image into a circular one without distortion, you can utilize the radius and object fit to position the image inside a Div block \u2014 here&#8217;s how:<\/p>\n<ol>\n<li>Drag a <strong>Div block<\/strong> onto the canvas<\/li>\n<li>Insert the image inside the <strong>Div block<\/strong><\/li>\n<li>Choose the <strong>Div block<\/strong>\u00a0<\/li>\n<li>Access the <strong>Style section<\/strong> &gt; <strong>Selector<\/strong> and form a <strong>Class<\/strong> (e.g., Image holder thing)\u00a0<\/li>\n<li>Establish an equivalent <strong>height<\/strong> and <strong>width<\/strong> (e.g., 400px)<\/li>\n<li>Set the <strong>radius<\/strong> to 50% (to achieve circularity since the width and height are equal)<\/li>\n<li>Set <strong>overflow<\/strong> to hidden (to mask any section of the image outside the circle)<\/li>\n<li>Select the image on the canvas<\/li>\n<li>Set the image&#8217;s <strong>width<\/strong> and <strong>height<\/strong> to 100%<\/li>\n<li>Set <strong>fit<\/strong> to cover (to cover the space within the circular div block)<\/li>\n<li>Access the ellipses beside <strong>fit<\/strong> to situate the circular cover (to anchor it to a corner or the center)<\/li>\n<\/ol>\n<h2>Edges &amp; corners<\/h2>\n<p>In the <strong>Style section<\/strong> &gt; <strong>Borders<\/strong>, you can design all sides simultaneously (by clicking in the center) or each side individually.\u00a0<\/p>\n<p>If you establish and style a border at the top, it only affects the top side. If you establish and style a border on the left, only the left side is affected.<\/p>\n<h2>Facets<\/h2>\n<p>Facets introduce depth to an image.\u00a0<\/p>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b948b1bdd37d12dce5d86e_5f5f9369f87b8f02c6e99c44_template252022.png\" loading=\"lazy\" title=\"64b948b1bdd37d12dce5d86e_5f5f9369f87b8f02c6e99c44_template252022\"><\/div>\n<\/figure>\n<p>\u200d<br \/>To append a bevel effect to a button, open the <strong>Style section<\/strong> &gt; <strong>Borders<\/strong>:<\/p>\n<ol>\n<li>Add a border to all sides of the button (e.g., allocate all sides a width of 10px)<\/li>\n<li>Assign a border color (different from the button color) to all sides\u00a0<\/li>\n<li>Click one side of the border in the Style section<\/li>\n<li>Choose a color and input a color (different from the original border color)<\/li>\n<li>Adjust the width of one side<\/li>\n<\/ol>\n<h2>Transition animations<\/h2>\n<p>You have the capability to design anything in the Style section \u2014 let&#8217;s style a button to animate upon hover.<\/p>\n<p>\u200d<br \/>To grant your button rounded corners upon hover:<\/p>\n<ol>\n<li>Select the button on the canvas<\/li>\n<li>Access the <strong>Style section<\/strong> &gt; <strong>Selector<\/strong> and opt for <strong>Hover<\/strong> from the dropdown<\/li>\n<li>Scroll down to <strong>Borders<\/strong> and insert a <strong>radius<\/strong> (e.g., 10px)\u00a0<\/li>\n<\/ol>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b948b0bdd37d12dce5d862_5f5f938795761795f6860426_template252019.png\" loading=\"lazy\" title=\"64b948b0bdd37d12dce5d862_5f5f938795761795f6860426_template252019\"><\/div><figcaption>Change selector to hover<\/figcaption><\/figure>\n<p>To revert the button to its original state off hover and generate a seamless transition:<\/p>\n<ol>\n<li>Select the button on the canvas<\/li>\n<li>Access the <strong>Style section<\/strong> &gt; <strong>Selector<\/strong> and opt for <strong>None<\/strong> from the dropdown<\/li>\n<li>Scroll down to <strong>Effects <\/strong>&gt;<strong> Transitions<\/strong> &gt; <strong>Type<\/strong> &gt; <strong>Property<\/strong> &gt; <strong>Border radius<\/strong><\/li>\n<\/ol>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b948b0bdd37d12dce5d85f_5f5f93ae80bdfe8a84456ea0_template252020.png\" loading=\"lazy\" title=\"64b948b0bdd37d12dce5d85f_5f5f93ae80bdfe8a84456ea0_template252020\"><\/div><figcaption>Change Selector to none<\/figcaption><\/figure>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b948b1bdd37d12dce5d872_5f5f941c717bba6ccafd5668_template252021.png\" loading=\"lazy\" title=\"64b948b1bdd37d12dce5d872_5f5f941c717bba6ccafd5668_template252021\"><\/div><figcaption>Add a transition on the Border-Radius<\/figcaption><\/figure>\n<p>To eliminate this animation:<\/p>\n<ol>\n<li>Select the button on the canvas<\/li>\n<li>Access the <strong>Style section<\/strong> &gt; <strong>Selector<\/strong> and choose <strong>Hover<\/strong> from the dropdown<\/li>\n<li>Scroll down to <strong>Borders <\/strong>&gt;<strong> Radius <\/strong>&gt;<strong> Reset<\/strong><\/li>\n<\/ol>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b948b0bdd37d12dce5d866_5f5f9494fcb7a147b8131489_template252024.png\" loading=\"lazy\" title=\"64b948b0bdd37d12dce5d866_5f5f9494fcb7a147b8131489_template252024\"><\/div>\n<\/figure>\n<p>To give your button rounded corners on click:<\/p>\n<ol start=\"4\">\n<li>Select the button on the canvas<\/li>\n<li>Access the <strong>Style section<\/strong> &gt; <strong>Selector<\/strong> and choose <strong>Pressed<\/strong> from the dropdown<\/li>\n<li>Scroll down to <strong>Borders<\/strong> and insert a <strong>radius<\/strong> (e.g., 10px)\u00a0\n<\/li>\n<\/ol>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b948b0bdd37d12dce5d86a_5f5f94cdea510f5966eba317_template252025.png\" loading=\"lazy\" title=\"64b948b0bdd37d12dce5d86a_5f5f94cdea510f5966eba317_template252025\"><\/div>\n<\/figure>\n<p>You can execute the same steps outlined above to introduce a transition and animate elements like the border color or border thickness on hover or click. Enjoy the process!\u00a0<\/p>\n<p>And make sure to explore our complete course on animations with After Effects and Lottie.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Use borders to define the radius of an element and create outlines on one or more sides of an element&#8217;s boundary.","protected":false},"author":2,"featured_media":5831,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[284],"tags":[],"class_list":{"0":"post-5830","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-layout-design","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/5830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/comments?post=5830"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/5830\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/5831"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=5830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=5830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=5830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}