{"id":15807,"date":"2016-05-31T21:31:49","date_gmt":"2016-05-31T21:31:49","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=15807"},"modified":"2016-05-31T21:31:49","modified_gmt":"2016-05-31T21:31:49","slug":"web-design-css-margin-and-padding","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/web-design-css-margin-and-padding\/","title":{"rendered":"Web design:  CSS margin and padding"},"content":{"rendered":"<h1>The tutor shows examples of margin and padding, two important aspects of a webpage element&#8217;s style.<\/h1>\n<p>An element&#8217;s margin is the space around it.  It can also be seen as the space between the element and other elements.<\/p>\n<p style=\"margin-right:70%;background-color:pink;color:blue\">This paragraph has a margin 70% of the page.  That&#8217;s why it runs on so many different lines.<br \/><span style=\"font-size:140%;color:black\">margin-right:70%;<\/span><\/p>\n<p>An element&#8217;s padding is the space between its content (text or image) and its own outer border.<\/p>\n<p style=\"display:block;margin:auto;padding:20%;background-color:pink;color:blue\">This paragraph has 20% padding.  Note the distance from this text to the outside of this box, in any direction.<br \/><span style=\"font-size:140%;color:black\">padding:20%;<\/span><\/p>\n<p>&NewLine;<br \/>\nI&#8217;ll be showing more CSS concepts in coming posts:)<\/p>\n<p>Source:<\/p>\n<p><a href=\"http:\/\/www.w3schools.com\/css\/css_margin.asp\">w3schools<\/a><\/p>\n<p><a href=\"http:\/\/www.w3schools.com\/css\/css_padding.asp\">w3schools<\/a><\/p>\n<p>Jack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The tutor shows examples of margin and padding, two important aspects of a webpage element&#8217;s style. An element&#8217;s margin is the space around it. It can also be seen as the space between the element and other elements. This paragraph &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/web-design-css-margin-and-padding\/\"> <span class=\"screen-reader-text\">Web design:  CSS margin and padding<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105,1631,458],"tags":[1632,1633],"class_list":["post-15807","post","type-post","status-publish","format-standard","hentry","category-computer-science","category-css","category-technology","tag-margin","tag-padding"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/15807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=15807"}],"version-history":[{"count":40,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/15807\/revisions"}],"predecessor-version":[{"id":15847,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/15807\/revisions\/15847"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=15807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=15807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=15807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}