<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>leader22</author_name>
  <author_url>https://blog.hatena.ne.jp/leader22/</author_url>
  <blog_title>console.lealog();</blog_title>
  <blog_url>https://lealog.hateblo.jp/</blog_url>
  <categories>
    <anon>Web</anon>
    <anon>CSS</anon>
  </categories>
  <description>よく使う割にイマイチ思い出せないのがコレ。`position: absolute`じゃないなら、`margin: 0 auto`とかで良いんですけどねー。 それっぽい帯のデザインを作るときとかでbefore/after擬似要素を使う時はたいてい`position: absolute`なので、うまいこと真ん中に寄ってくれないんですよね・・。でも、よくよく考えたらそれも大したことはなくて。 縦にも横にもcenterしたい場合のやつ。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flealog.hateblo.jp%2Fentry%2F2013%2F01%2F05%2F013754&quot; title=&quot;position: absoluteな要素をcenter寄せにする - console.lealog();&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>2013-01-05 01:37:54</published>
  <title>position: absoluteな要素をcenter寄せにする</title>
  <type>rich</type>
  <url>https://lealog.hateblo.jp/entry/2013/01/05/013754</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
