<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takiji13</author_name>
  <author_url>https://blog.hatena.ne.jp/takiji13/</author_url>
  <blog_title>あめみか</blog_title>
  <blog_url>https://takiji13.hatenablog.com/</blog_url>
  <categories>
    <anon>ブログ</anon>
    <anon>ブログ-カスタマイズ</anon>
  </categories>
  <description>marginは要素の外側の余白を指定し、paddingは要素の内側の余白を指定します。 またmarginやpaddingには略記のショートハンドがあります。 このmarginやpaddingの違いやショートハンドは言葉だけではちょっとわかりづらい。 そこで図解してみます。 以下では黒枠が背景の左隅を表す線、赤枠がテキストを囲む要素(borderやbackgroundなど)の線だとして、下図のように画面左隅に要素が配置されているものとして図示しています。 marginのショートハンド margin: 上下左右px; margin: 上下px 左右px; margin: 上px 左右px 下px;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakiji13.hatenablog.com%2Fentry%2F2017%2F01%2F15%2F145917&quot; title=&quot;【図解】marginとpaddingの違いと4つのショートハンド - あめみか&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.pixabay.com/photo/2015/10/12/15/23/stone-984483__340.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-01-15 14:59:17</published>
  <title>【図解】marginとpaddingの違いと4つのショートハンド</title>
  <type>rich</type>
  <url>https://takiji13.hatenablog.com/entry/2017/01/15/145917</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
