{"id":99,"date":"2022-01-12T18:22:21","date_gmt":"2022-01-12T18:22:21","guid":{"rendered":"https:\/\/melfaeforest.xhere.eu.org\/?p=99"},"modified":"2022-02-02T21:41:47","modified_gmt":"2022-02-02T21:41:47","slug":"html-css-course-day-6-page-centering","status":"publish","type":"post","link":"https:\/\/melfaeforest.xhere.eu.org\/?p=99","title":{"rendered":"HTML\/CSS Course \u2013 Day 6 \u2013 Page Centering"},"content":{"rendered":"\n<p>1) Wrap a segment of your HTML code in a container such as &lt;div>.<\/p>\n\n\n\n<p>2) Targeting that container, set the width to whatever you wish. (Preferably somewhere around 700-800px, but it may vary.)<\/p>\n\n\n\n<p>3) Set the margin-left and margin-right to \u201cauto\u201d. Though its better if you do the shorthand version with \u201cmargin: 0 auto;\u201d.<\/p>\n\n\n\n<p>4) Elements in that container are now centered, and also auto-scale to the scaling of the tab.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1) Wrap a segment of your HTML code in a container such as &lt;div>. 2) Targeting that container, set the width to whatever you wish. (Preferably somewhere around 700-800px, but it may vary.) 3) Set the margin-left and margin-right to \u201cauto\u201d. Though its better if you do the shorthand version with \u201cmargin: 0 auto;\u201d. 4) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[6],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-html-css-course","tag-html-css-course"],"_links":{"self":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=99"}],"version-history":[{"count":2,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":283,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/99\/revisions\/283"}],"wp:attachment":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}