{"id":71,"date":"2024-01-29T10:20:59","date_gmt":"2024-01-29T15:20:59","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/r_santiago\/?p=71"},"modified":"2024-01-29T10:20:59","modified_gmt":"2024-01-29T15:20:59","slug":"badly-explaining-css-stuff","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/r_santiago\/2024\/01\/29\/badly-explaining-css-stuff\/","title":{"rendered":"Badly Explaining CSS Stuff"},"content":{"rendered":"\n<p>I was told to explain stuff like margin, content, padding, etc. so here it is.<\/p>\n\n\n\n<p>First I&#8217;ll start with content since most of the code revolves around it, content is basically the stuff you display in your site, like text, images, and videos.<\/p>\n\n\n\n<p>Next is margins, margins are basically used to make space outside the area of any elements.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>.container{\n    margin: 10px;\n}<\/strong><\/code><\/pre>\n\n\n\n<p>Padding is like margins, but it makes space inside the element instead of outside.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>.container{\n    padding: 10px;\n}<\/strong><\/code><\/pre>\n\n\n\n<p>With borders, it should be self explanatory, when you add a border to a piece of code it basically surrounds it with whichever color you give the border<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>.container{\n    border: 10px #fffff;\n}<\/strong>\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I was told to explain stuff like margin, content, padding, etc. so here it is. First I&#8217;ll start with content since most of the code revolves around it, content is basically the stuff you display in your site, like text, images, and videos. Next is margins, margins are basically used to make space outside the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/r_santiago\/wp-json\/wp\/v2\/posts\/71","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/r_santiago\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/r_santiago\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_santiago\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_santiago\/wp-json\/wp\/v2\/comments?post=71"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/r_santiago\/wp-json\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":72,"href":"https:\/\/theroyalscode.com\/students\/r_santiago\/wp-json\/wp\/v2\/posts\/71\/revisions\/72"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/r_santiago\/wp-json\/wp\/v2\/media?parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_santiago\/wp-json\/wp\/v2\/categories?post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_santiago\/wp-json\/wp\/v2\/tags?post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}