{"id":10,"date":"2010-06-09T16:12:08","date_gmt":"2010-06-09T07:12:08","guid":{"rendered":"http:\/\/santoshkori.com\/blog\/?p=10"},"modified":"2012-03-05T22:55:59","modified_gmt":"2012-03-05T13:55:59","slug":"differentiate-between-block-elements-from-inline","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/differentiate-between-block-elements-from-inline\/","title":{"rendered":"Differentiate between block elements from inline"},"content":{"rendered":"<p>Here are some basic rules that differentiate block elements from inline:<!--more--><\/p>\n<ul>\n<li>Block elements will, by default, naturally expand horizontally to fill their parent container, so there\u2019s no need to set a width of \u201c100%\u201d<\/li>\n<li>Block elements will, by default, begin at the leftmost edge of the parent box, below any previous block elements (unless floats or positioned elements are utilized; see below)<\/li>\n<li>Inline elements will ignore width or height settings<\/li>\n<li>Inline elements flow with text, and are subject to typographical properties such as <code>white-space<\/code>, <code>font-size<\/code>, and <code>letter-spacing<\/code><\/li>\n<li>Inline elements can be aligned using the <code>vertical-align<\/code> property, but block elements cannot<\/li>\n<li>Inline elements will have some natural space below them in order to accommodate text elements that drop below the line (like the letter \u201cg\u201d)<\/li>\n<li>An inline element will become a block element if it is floated<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Here are some basic rules that differentiate block elements from inline:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-cross-browser-compatibility","category-xhtml-coding"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":4,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":474,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions\/474"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}