﻿{"id":442,"date":"2008-06-15T12:54:00","date_gmt":"2008-06-15T12:54:00","guid":{"rendered":"https:\/\/chayilyam.com\/stories\/?p=442"},"modified":"2008-06-15T12:54:00","modified_gmt":"2008-06-15T12:54:00","slug":"css-font-shorthand-rule","status":"publish","type":"post","link":"https:\/\/chayilyam.com\/stories\/css-font-shorthand-rule\/","title":{"rendered":"CSS font shorthand rule"},"content":{"rendered":"<p>When styling fonts with CSS you may be doing this:<br \/>font-size: 1em;<br \/>line-height: 1.5em;<br \/>font-weight: bold;<br \/>font-style: italic;<br \/>font-variant: small-caps;<br \/>font-family: verdana,serif;<\/p>\n<p>There&#8217;s no need though as you can use this CSS shorthand property:<br \/>font: 1em\/1.5em bold italic small-caps verdana,serif<\/p>\n<p>Much better! Just a couple of words of warning: This CSS shorthand version will only work if you&#8217;re specifying both the font-size and the font-family. Also, if you don&#8217;t specify the font-weight, font-style, or font-varient then these values will automatically default to a value of normal, so do bear this in mind too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When styling fonts with CSS you may be doing this:font-size: 1em;line-height: 1.5em;font-weight: bold;font-style: italic;font-variant: small-caps;font-family: verdana,serif; There&#8217;s no need though as you can use this CSS shorthand property:font: 1em\/1.5em bold italic small-caps verdana,serif Much better! Just a couple of words of warning: This CSS shorthand version will only work if you&#8217;re specifying both the font-size &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[81,84,85,183],"tags":[1627,1646,1348],"class_list":["post-442","post","type-post","status-publish","format-standard","hentry","category-css","category-css-tags","category-css3","category-help","tag-css","tag-help","tag-tutoral"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_shortlink":"https:\/\/wp.me\/pfoK1S-78","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/posts\/442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/comments?post=442"}],"version-history":[{"count":0,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/posts\/442\/revisions"}],"wp:attachment":[{"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/media?parent=442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/categories?post=442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/tags?post=442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}