<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kagerou_ts</author_name>
  <author_url>https://blog.hatena.ne.jp/kagerou_ts/</author_url>
  <blog_title>いろいろブログカスタマイズメモ</blog_title>
  <blog_url>https://hatebu-memo.scriptlife.jp/</blog_url>
  <categories>
    <anon>デザイン</anon>
  </categories>
  <description>Amazonアソシエイトのバナーを貼り付けるときに、そのままだと左に寄っているのを自動的にセンタリングするCSSです。 アソシエイトのiframeを指定してセンタリング センタリングを解除する場合 style属性で指定する ブロック要素で囲う アソシエイトのiframeを指定してセンタリング 例えばAmazonプライムのバナーは、以下のようなiframeになっています。(一部IDっぽい情報をxxxxにしました) &lt;iframe src=&quot;https://rcm-fe.amazon-adsystem.com/e/cm?o=9&amp;p=12&amp;l=ur1&amp;category=prime&amp;banner=xx…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhatebu-memo.scriptlife.jp%2Fentry%2F2017%2F11%2F23%2Famazon-banner-centering&quot; title=&quot;Amazonアソシエイトのバナーを自動的にセンタリングする - いろいろブログカスタマイズメモ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-11-23 22:33:01</published>
  <title>Amazonアソシエイトのバナーを自動的にセンタリングする</title>
  <type>rich</type>
  <url>https://hatebu-memo.scriptlife.jp/entry/2017/11/23/amazon-banner-centering</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
