{"id":74187,"date":"2020-01-17T11:41:33","date_gmt":"2020-01-17T06:11:33","guid":{"rendered":"https:\/\/www.vskills.in\/certification\/tutorial\/?p=74187"},"modified":"2024-04-12T14:23:20","modified_gmt":"2024-04-12T08:53:20","slug":"border-2","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/border-2\/","title":{"rendered":"Border"},"content":{"rendered":"<div>They are between the margin and padding in the box model. They are used to put lines around the element and makes the other box model properties easier to see. A border has properties of width, style and color.<\/div>\n<div><\/div>\n<div><strong>Border-Width Property<\/strong><\/div>\n<div><\/div>\n<div>It defines the width of border. The various border-width property are listed as<\/div>\n<div><\/div>\n<div>\u2022border-width<\/div>\n<div>\u2022border-top-width<\/div>\n<div>\u2022border-right-width<\/div>\n<div>\u2022border-bottom-width<\/div>\n<div>\u2022border-left-width<\/div>\n<div><\/div>\n<div>All of these properties are assigned values in absolute units of length or in percentage. They do not take percentage values. The \u2018border-width\u2019 property is a shorthand property for all of the four remaining margin properties. The four remaining properties define specific border-width as per their name as<\/div>\n<div>\n<table border=\"1\" width=\"257\" cellspacing=\"0\" cellpadding=\"7\">\n<colgroup>\n<col width=\"142\" \/>\n<col width=\"85\" \/><\/colgroup>\n<tbody>\n<tr valign=\"TOP\">\n<td bgcolor=\"#d9d9d9\" width=\"142\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\"><b>Property<\/b><\/span><\/p>\n<\/td>\n<td bgcolor=\"#d9d9d9\" width=\"85\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\"><b>Margin Side<\/b><\/span><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"TOP\">\n<td width=\"142\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">border-top-width<\/span><\/p>\n<\/td>\n<td width=\"85\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">Top<\/span><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"TOP\">\n<td width=\"142\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">border-right-width<\/span><\/p>\n<\/td>\n<td width=\"85\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">Right<\/span><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"TOP\">\n<td width=\"142\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">border-bottom-width<\/span><\/p>\n<\/td>\n<td width=\"85\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">Bottom<\/span><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"TOP\">\n<td width=\"142\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">border-left-width<\/span><\/p>\n<\/td>\n<td width=\"85\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">Left<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<div>These properties are used as<\/div>\n<div><\/div>\n<div>.top { border-top-width: 1px; border-right-width: 2px; border-bottom-width: 3px;<br \/>\nborder-left-width: 4px; border-style: solid; }<\/div>\n<div><\/div>\n<div>All the border-width properties can take either values in length or following keywords<\/div>\n<div><\/div>\n<ul>\n<li>thin<\/li>\n<li>medium<\/li>\n<li>thick<\/li>\n<\/ul>\n<div><\/div>\n<div>Mostly border-width is given a length value in pixels. Four-value , Three-value, two-value, and one-value shorthand syntax is also applicable for border-width and the shorthand property of border-width property is given as<\/div>\n<div><\/div>\n<div>border-width: 1px 3px 5px 7px;<\/div>\n<div><\/div>\n<div><strong>Border-Style<\/strong><\/div>\n<div>It specify the style of border to be used. The default style is \u2018none\u2019 and style of border for each side can be specified. The various border-style property are listed as<\/div>\n<div><\/div>\n<ul>\n<li>border-style<\/li>\n<li>border-top-style<\/li>\n<li>border-right-style<\/li>\n<li>border-bottom-style<\/li>\n<li>border-left-style<\/li>\n<\/ul>\n<div><\/div>\n<div>This property takes keywords as value which are<\/div>\n<div><\/div>\n<ul>\n<li>none<\/li>\n<li>hidden<\/li>\n<li>dotted<\/li>\n<li>dashed<\/li>\n<li>solid<\/li>\n<li>double<\/li>\n<li>groove<\/li>\n<li>ridge<\/li>\n<li>inset<\/li>\n<li>outset<\/li>\n<\/ul>\n<div><\/div>\n<div>It is used as<\/div>\n<div><\/div>\n<div>.top {<br \/>\nborder-width: 3px;<br \/>\nborder-top-style: ridge;<br \/>\nborder-right-style: dashed; border-bottom-style: dotted; border-left-style: double;<br \/>\n}<\/div>\n<div><\/div>\n<div>The border-style property has a shorthand property, which combines all the individual top, right, bottom and left properties as shown<\/div>\n<div><\/div>\n<div>border-style: ridge dashed dotted double;<\/div>\n<div><\/div>\n<div>Similar to other four-value properties, border-style shorthand is given as top, right, bottom and left. It also supports the three-value, two-value, and one-value shorthand syntax as others.<\/div>\n<div><strong>Border-Color<\/strong><\/div>\n<div>It gives the border color for each side of the box.\u00a0 The default color is \u2018transparent\u2019 and color of border for each side can be specified. The various border-color property are listed as<\/div>\n<div><\/div>\n<ul>\n<li>border-color<\/li>\n<li>border-top-color<\/li>\n<li>border-right-color<\/li>\n<li>border-bottom-color<\/li>\n<li>border-left-color<\/li>\n<\/ul>\n<div><\/div>\n<div>This property takes \u2018transparent\u2019 keyword and various color values as value. Different\u00a0 color values\u00a0 accepted by this property are<\/div>\n<div><\/div>\n<ul>\n<li>color keyword<\/li>\n<li>hexadecimal value<\/li>\n<li>short hexadecimal value<\/li>\n<li>RGB value<\/li>\n<li>any color value accepted by the color property<\/li>\n<\/ul>\n<div><\/div>\n<div>If border-color property is not given, the border-color takes the color as given for color property of\u00a0 text color.<\/div>\n<div><\/div>\n<div>body { border-top-color: red; border-right-color: blue;<br \/>\nborder-bottom-color: green; border-left-color: purple; }<\/div>\n<div><strong>Border Shorthand Properties<\/strong><\/div>\n<div><\/div>\n<div>Each side of the box combine the border-width , border-style , and border-color properties into single property for each side by using the border properties which consist of<\/div>\n<ul>\n<li>border<\/li>\n<li>border-top<\/li>\n<li>border-right<\/li>\n<li>border-bottom<\/li>\n<li>border-left<\/li>\n<\/ul>\n<div><\/div>\n<div>The property takes all of the three border properties of width, style and color as value and one to three values are given to refer to border-width value, a border-style value and a border-color value. as<\/div>\n<div><\/div>\n<div>.top {<br \/>\nborder: 3px dashed red; }<\/div>\n<div><\/div>\n<div>The border property is only used to specify styling for all four sides else individual shorthand properties should be used.<\/div>\n<div><\/div>\n<div>border-top: 1px solid #666;\u00a0 border-bottom: 3px dashed red;<\/div>\n<div>\n<h5 id=\"block-07feabc5-3923-4122-ba70-f7cf1db64a8f\" class=\"block-editor-block-list__block wp-block is-selected rich-text block-editor-rich-text__editable is-hovered wp-block\" tabindex=\"0\" role=\"textbox\" contenteditable=\"true\" aria-label=\"Write heading\u2026\" aria-multiline=\"true\" data-block=\"07feabc5-3923-4122-ba70-f7cf1db64a8f\" data-type=\"core\/heading\" data-title=\"Heading\">Go To-\u00a0<a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/certified-css3-developer\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Certified CSS3 Developer<\/strong>\u00a0<strong>Tutorial<\/strong><\/a><\/h5>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>They are between the margin and padding in the box model. They are used to put lines around the element and makes the other box model properties easier to see. A border has properties of width, style and color. Border-Width Property It defines the width of border. The various border-width property are listed as \u2022border-width&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[8568],"tags":[1811],"class_list":["post-74187","page","type-page","status-publish","hentry","category-css3","tag-border"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Border - Tutorial<\/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.vskills.in\/certification\/tutorial\/border-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Border - Tutorial\" \/>\n<meta property=\"og:description\" content=\"They are between the margin and padding in the box model. They are used to put lines around the element and makes the other box model properties easier to see. A border has properties of width, style and color. Border-Width Property It defines the width of border. The various border-width property are listed as \u2022border-width...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/border-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:53:20+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/border-2\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/border-2\/\",\"name\":\"Border - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"datePublished\":\"2020-01-17T06:11:33+00:00\",\"dateModified\":\"2024-04-12T08:53:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/border-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/border-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/border-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Border\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Border - Tutorial","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.vskills.in\/certification\/tutorial\/border-2\/","og_locale":"en_US","og_type":"article","og_title":"Border - Tutorial","og_description":"They are between the margin and padding in the box model. They are used to put lines around the element and makes the other box model properties easier to see. A border has properties of width, style and color. Border-Width Property It defines the width of border. The various border-width property are listed as \u2022border-width...","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/border-2\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:53:20+00:00","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/border-2\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/border-2\/","name":"Border - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"datePublished":"2020-01-17T06:11:33+00:00","dateModified":"2024-04-12T08:53:20+00:00","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/border-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/border-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/border-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Border"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/74187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=74187"}],"version-history":[{"count":4,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/74187\/revisions"}],"predecessor-version":[{"id":85610,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/74187\/revisions\/85610"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=74187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=74187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=74187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}