<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>simadzu</author_name>
  <author_url>https://blog.hatena.ne.jp/simadzu/</author_url>
  <blog_title>simadzu’blog</blog_title>
  <blog_url>https://simadzu.hatenablog.com/</blog_url>
  <categories>
    <anon>はてなブログ</anon>
  </categories>
  <description>はてなブログでサイドバーに設置した目次や広告バナーを固定して表示（スクロールに合わせて追従）させたい！ JavaScriptを使わずにCSSだけでなんとかしたい。 はてなブログでサイドバーを固定して追従させるカスタマイズ 今回はPC表示時にサイドバーを追従させるカスタマイズ方法を紹介します。 PC表示時には記事本文を読み進めると、サイドバーが表示されているエリアが途中からただのスペースになってしまい、少し寂しいですね。 サイドバーを追従させることで、… フジブロっ！ 「display:flex」と「position:sticky」を使えばいいはずなのに、なぜかCSSが効かない。どうやら、ブログ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsimadzu.hatenablog.com%2Fentry%2Fposition-sticky&quot; title=&quot;はてなブログのサイドバーをCSSだけで固定（追従）する - simadzu’blog&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/s/simadzu/20241021/20241021152818.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-11-09 18:11:39</published>
  <title>はてなブログのサイドバーをCSSだけで固定（追従）する</title>
  <type>rich</type>
  <url>https://simadzu.hatenablog.com/entry/position-sticky</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
