{"id":3153,"date":"2020-08-25T15:45:11","date_gmt":"2020-08-25T14:45:11","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=3153"},"modified":"2022-02-17T07:13:47","modified_gmt":"2022-02-17T07:13:47","slug":"inline-block","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/css\/display\/inline-block","title":{"rendered":"inline-block"},"content":{"rendered":"\n<p>inline-block causes the element to flows on the page in the same way inline elements do, e.g. text, img elements, etc.  In many ways thing of the element as a next text character in a line of test, it will be handled in the same way.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Good for<\/h5>\n\n\n\n<ul class=\"wp-block-list\"><li>Element expands as needed to fit the available text, using min-width and max-width as desired.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">margin: auto<\/h4>\n\n\n\n<p>margin: auto; will not work with an inline-block.<\/p>\n\n\n\n<p>You need to set the text alignment of the containing element to set the inline-block element alignment within it, e.g.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$HtmlOutput .= '&lt;div style=\"text-align:center;\">&lt;a class=\"MyButton\" href=\"\/something.php\">MY BUTTON TEXT&lt;\/a>&lt;\/div><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>inline-block causes the element to flows on the page in the same way inline elements do, e.g. text, img elements, etc. In many ways thing of the element as a next text character in a line of test, it will be handled in the same way. Good for Element expands as needed to fit the [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[265],"tags":[],"class_list":["post-3153","post","type-post","status-publish","format-standard","hentry","category-display"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=3153"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3153\/revisions"}],"predecessor-version":[{"id":3154,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3153\/revisions\/3154"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=3153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=3153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=3153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}