<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>na_ah</author_name>
  <author_url>https://blog.hatena.ne.jp/na_ah/</author_url>
  <blog_title>na_ahのブログ</blog_title>
  <blog_url>https://na-ah.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>こんにちは！ 今回はposition: absolute時に中央揃えをする方法についてまとめます。 やりたいこと position: absoluteで親要素に対して中央揃えをしたい コード例 &lt;div class=&quot;parent&quot;&gt; &lt;div class=&quot;child&quot;&gt;Lorem&lt;/div&gt; &lt;/div&gt; .parent { background-color: khaki; height: 300px; width: 500px; position: relative; } .child { background-color: burlywood; height: 50px; width:…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fna-ah.hatenablog.com%2Fentry%2F2024%2F03%2F07%2F000000&quot; title=&quot;position: absolute時に中央揃えをする方法 - na_ahのブログ&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-ak.f.st-hatena.com/images/fotolife/n/na_ah/20240311/20240311190354.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-03-07 00:00:00</published>
  <title>position: absolute時に中央揃えをする方法</title>
  <type>rich</type>
  <url>https://na-ah.hatenablog.com/entry/2024/03/07/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
