<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kanonji</author_name>
  <author_url>https://blog.hatena.ne.jp/kanonji/</author_url>
  <blog_title>kanonji’s diary</blog_title>
  <blog_url>https://kanonji.hatenadiary.com/</blog_url>
  <categories>
    <anon>css</anon>
  </categories>
  <description>img要素をブロック要素でラップした際の隙間を無くす http://jsdo.it/kanonji/4rxU &lt;div&gt; &lt;img src=&quot;http://a0.twimg.com/profile_images/40688552/005_bigger.jpg&quot; alt=&quot;example&quot;&gt; &lt;/div&gt; レイアウトやデザインの都合で、こんな風にimg要素をdivでラップすると、謎の隙間が出てきます。 div img{vertical-align:bottom;} これはimg要素がデフォルトでは vertical-align: baseline; に位置を合わせるからのようです。 gやqなど、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkanonji.hatenadiary.com%2Fentry%2F20101122%2F1290409864&quot; title=&quot;img要素をブロック要素でラップした際の隙間 / margin:0 auto;でのセンタリングずれ - kanonji’s diary&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>http://img.f.hatena.ne.jp/images/fotolife/k/kanonji/20101121/20101121082852.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-11-22 16:11:04</published>
  <title>img要素をブロック要素でラップした際の隙間 / margin:0 auto;でのセンタリングずれ</title>
  <type>rich</type>
  <url>https://kanonji.hatenadiary.com/entry/20101122/1290409864</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
