{"id":1433,"date":"2022-05-24T21:17:43","date_gmt":"2022-05-24T21:17:43","guid":{"rendered":"https:\/\/gyanipandit.com\/programming\/?p=1433"},"modified":"2022-05-24T21:17:45","modified_gmt":"2022-05-24T21:17:45","slug":"css-line-height","status":"publish","type":"post","link":"https:\/\/gyanipandit.com\/programming\/css-line-height\/","title":{"rendered":"CSS Line Height"},"content":{"rendered":"<p>As the name of the CSS Line Height property says, you can specify the height of a line, using the line-height property.<\/p>\n<p>Let&#8217;s have a look at an example so that we get a clear picture of what is happening. Have a look at the below code, where we are trying to use the line-height property &#8211;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-461 size-full\" src=\"https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/05\/CSS-line-height.jpg\" alt=\"\" width=\"833\" height=\"334\" \/>Output -(as you might have guessed that the lines will be separated with some spaces)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-462 size-full\" src=\"https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/05\/CSS-line-height-example.jpg\" alt=\"\" width=\"1023\" height=\"230\" \/><\/p>\n<p>As you can see, there is some space between the lines now. So, you can make use of the property line height, as and when required.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As the name of the CSS Line Height property says, you can specify the height of a line, using the line-height property. Let&#8217;s have a look at an example so that we get a clear picture of what is happening. Have a look at the below code, where we are trying to use the line-height [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[9,13],"class_list":{"0":"post-1433","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-css-tutorial","7":"tag-css","8":"tag-css-tutorial"},"_links":{"self":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/1433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/comments?post=1433"}],"version-history":[{"count":1,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/1433\/revisions"}],"predecessor-version":[{"id":1436,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/1433\/revisions\/1436"}],"wp:attachment":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/media?parent=1433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/categories?post=1433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/tags?post=1433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}