<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sbnk4030</author_name>
  <author_url>https://blog.hatena.ne.jp/sbnk4030/</author_url>
  <blog_title>旧さびぬき覚書</blog_title>
  <blog_url>https://sbnk.hatenablog.com/</blog_url>
  <categories>
    <anon>webのこと</anon>
  </categories>
  <description>web制作中に「背景にwidth100%で水平方向（横）に1本のライン（線）が入ってて、その上に要素がある」ものを作る機会がありまして… 見出しのデザインで「文字の左右にラインが入ってる」ものありますよね これで左右の余白0にすればいけるんじゃね？と思ったのですが、 要素にマージンつけちゃうと当たり前なんですがラインも途切れました。そこで「文字にマーカーみたいに線いれる」デザインで使うlinear-gradientを応用して、グラデーションで中央にだけ線があるように見せれば… html: &lt;div class=&quot;container-fluid&quot;&gt; &lt;div class=&quot;bg-line my-…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsbnk.hatenablog.com%2Fentry%2F2022%2F03%2F28%2F101404&quot; title=&quot;CSSで背景に水平方向に貫いてるラインを入れたい - 旧さびぬき覚書&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/sbnk4030/20220325/20220325165939.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-03-28 10:14:04</published>
  <title>CSSで背景に水平方向に貫いてるラインを入れたい</title>
  <type>rich</type>
  <url>https://sbnk.hatenablog.com/entry/2022/03/28/101404</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
