<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>arms-nakamura</author_name>
  <author_url>https://blog.hatena.ne.jp/arms-nakamura/</author_url>
  <blog_title>arms inc. Engineers' Blog</blog_title>
  <blog_url>https://tech.arms-soft.co.jp/</blog_url>
  <categories>
    <anon>CSS</anon>
    <anon>フロントエンド</anon>
  </categories>
  <description>こんにちは、ナカムラです。 今日はposition:stickyを使った時のちょっとしたお助けプロパティをご紹介します。 課題点 ECサイトやポータルサイトの検索結果ページなどでよく使われるレイアウトに、検索結果一覧の横に絞り込み検索が表示されているものがあります。 絞り込み条件も長くなるので、選択してすぐ検索ボタンを押せるように、position:stickyを用いてボタンを追従させると使いやすくなります。 この時、検索枠の親要素が角丸だった場合、 追従しているときは四角いオブジェクトの状態として表示し、 追従している時 元の位置に戻った時は、親要素の角丸に合わせてトリミングされる。 元の位…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.arms-soft.co.jp%2Fentry%2F2024%2F08%2F28%2F090000&quot; title=&quot;position:stickyを付与した要素の親要素にoverflow:hiddenのような効果をつけたい時に使用するCSS - arms inc. Engineers&amp;#39; 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.user.blog.st-hatena.com/default_entry_og_image/154391842/1555659217502624</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-08-28 09:00:00</published>
  <title>position:stickyを付与した要素の親要素にoverflow:hiddenのような効果をつけたい時に使用するCSS</title>
  <type>rich</type>
  <url>https://tech.arms-soft.co.jp/entry/2024/08/28/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
