{"id":74143,"date":"2020-01-17T11:13:41","date_gmt":"2020-01-17T05:43:41","guid":{"rendered":"https:\/\/www.vskills.in\/certification\/tutorial\/?p=74143"},"modified":"2024-04-12T14:23:19","modified_gmt":"2024-04-12T08:53:19","slug":"line-height-2","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/","title":{"rendered":"Line-Height"},"content":{"rendered":"<div>The line-height property is used to specify the height of the line on which text appears. The value of the property indicate the height of a line of text, from which the vertical space that the charters in the text take up is deducted.<\/div>\n<div><\/div>\n<div>The remainder is then split in two, with half added to the top of the line of text and half to the bottom. The line-height property and the values it can be assigned are<\/div>\n<div>\n<p>&nbsp;<\/p>\n<table border=\"1\" width=\"597\" cellspacing=\"0\" cellpadding=\"7\">\n<colgroup>\n<col width=\"62\">\n<col width=\"505\"><\/colgroup>\n<tbody>\n<tr valign=\"TOP\">\n<td bgcolor=\"#d9d9d9\" width=\"62\">\n<p align=\"CENTER\"><span style=\"font-family: Baskerville Old Face,serif;\"><b>Value<\/b><\/span><\/p>\n<\/td>\n<td bgcolor=\"#d9d9d9\" width=\"505\">\n<p align=\"CENTER\"><span style=\"font-family: Baskerville Old Face,serif;\"><b>Description<\/b><\/span><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"TOP\">\n<td width=\"62\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">normal <\/span><\/p>\n<\/td>\n<td width=\"505\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">A normal line height. <\/span><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"TOP\">\n<td width=\"62\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">number <\/span><\/p>\n<\/td>\n<td width=\"505\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">A number that will be multiplied with the current font size to set the line height<\/span><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"TOP\">\n<td width=\"62\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">length <\/span><\/p>\n<\/td>\n<td width=\"505\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">A fixed line height in px, pt, cm, etc.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"TOP\">\n<td width=\"62\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">% <\/span><\/p>\n<\/td>\n<td width=\"505\">\n<p align=\"JUSTIFY\"><span style=\"font-family: Baskerville Old Face,serif;\">A line height in percent of the current font size <\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The line-height property has the value of \u2018normal\u2019 as the default value for all the elements on a web page. Its values are discussed as<\/p>\n<div><\/div>\n<div><strong>Number<\/strong> \u2013 It is the best way to give line-height value as shown<\/div>\n<div><\/div>\n<div>&nbsp; .base {<br>\nline-height: 2;<br>\n}<\/div>\n<div><\/div>\n<div>In the example each line of text is contained in a line-height of 2 indicating that each line is 2 times the height of the text.<\/div>\n<div><\/div>\n<div><strong>Length and percentage<\/strong> &#8211; Both work in the same way like a line-height of 3em is a line-height of 3, as a line-height of 30px on text if the text has a font-size of 10px. But inheritance complicates the usage of percentage for child or nested tags hence use the number value option.<\/div>\n<div><\/div>\n<div>The line height is further illustrated as<\/div>\n<div><\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-59605\" src=\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Line-Height.png\" alt=\"Line-Height\" width=\"1950\" height=\"1008\"><\/div>\n\n\n<p>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><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The line-height property is used to specify the height of the line on which text appears. The value of the property indicate the height of a line of text, from which the vertical space that the charters in the text take up is deducted. The remainder is then split in two, with half added to&#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":[1791],"class_list":["post-74143","page","type-page","status-publish","hentry","category-css3","tag-line-height"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Line-Height - 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\/line-height-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Line-Height - Tutorial\" \/>\n<meta property=\"og:description\" content=\"The line-height property is used to specify the height of the line on which text appears. The value of the property indicate the height of a line of text, from which the vertical space that the charters in the text take up is deducted. The remainder is then split in two, with half added to...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-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:19+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Line-Height.png\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/\",\"name\":\"Line-Height - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Line-Height.png\",\"datePublished\":\"2020-01-17T05:43:41+00:00\",\"dateModified\":\"2024-04-12T08:53:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/#primaryimage\",\"url\":\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Line-Height.png\",\"contentUrl\":\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Line-Height.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Line-Height\"}]},{\"@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":"Line-Height - 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\/line-height-2\/","og_locale":"en_US","og_type":"article","og_title":"Line-Height - Tutorial","og_description":"The line-height property is used to specify the height of the line on which text appears. The value of the property indicate the height of a line of text, from which the vertical space that the charters in the text take up is deducted. The remainder is then split in two, with half added to...","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:53:19+00:00","og_image":[{"url":"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Line-Height.png","type":"","width":"","height":""}],"twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/","name":"Line-Height - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/#primaryimage"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/#primaryimage"},"thumbnailUrl":"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Line-Height.png","datePublished":"2020-01-17T05:43:41+00:00","dateModified":"2024-04-12T08:53:19+00:00","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/#primaryimage","url":"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Line-Height.png","contentUrl":"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Line-Height.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/line-height-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Line-Height"}]},{"@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\/74143","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=74143"}],"version-history":[{"count":5,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/74143\/revisions"}],"predecessor-version":[{"id":85594,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/74143\/revisions\/85594"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=74143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=74143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=74143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}