<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kimizuka</author_name>
  <author_url>https://blog.hatena.ne.jp/kimizuka/</author_url>
  <blog_title>みかづきブログ・カスタム</blog_title>
  <blog_url>https://blog.kimizuka.org/</blog_url>
  <categories>
    <anon>CSS</anon>
  </categories>
  <description>親要素にflexを設定する 子要素に下記CSSを当てる overflow: hidden; text-overflow: ellipsis; white-space: nowrap; これで、ウィンドウサイズを縮めた際、子要素は幅を縮めて要素内のテキストを省略できます。 DEMO もしも、子要素の中に幅を縮めたくないものがあるのであれば、flex-shrinkを0に設定します。 DEMO 上記例は、最後の要素以外flex-shrinkを0に設定しているので、最後の要素のみが幅が縮まります。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kimizuka.org%2Fentry%2F2024%2F05%2F28%2F234034&quot; title=&quot;親要素の幅を縮めた際、子要素も幅を縮めつつ要素内のテキストを省略する 💻 - みかづきブログ・カスタム&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/k/kimizuka/20240528/20240528233607.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-05-28 23:40:34</published>
  <title>親要素の幅を縮めた際、子要素も幅を縮めつつ要素内のテキストを省略する 💻</title>
  <type>rich</type>
  <url>https://blog.kimizuka.org/entry/2024/05/28/234034</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
