<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>web-css-design</author_name>
  <author_url>https://blog.hatena.ne.jp/web-css-design/</author_url>
  <blog_title>Web白描 - 自宅学習用ブログ</blog_title>
  <blog_url>https://web-css-design.hatenadiary.jp/</blog_url>
  <categories>
    <anon>★コーディング基礎</anon>
    <anon>★AI</anon>
  </categories>
  <description>::before と ::after（擬似要素） プロンプト例 CSSの::beforeと::afterについて詳しく解説して CSSの::beforeと::afterは、要素の中に“仮想的なコンテンツ”を追加できる疑似要素です。 基本の考え方 ::before → 要素の最初に追加 ::after → 要素の最後に追加 .selector::before { } .selector::after { } 最重要ポイント（これ知らないと動かない） 👉 必ず content が必要 .box::before { content: &quot;&quot;; } ※これがないと表示されません 基本例（まずはこれ） 【…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fweb-css-design.hatenadiary.jp%2Fentry%2F2026%2F02%2F25%2F%253A%253Abefore_%25E3%2581%25A8_%253A%253Aafter&quot; title=&quot;::before と ::after（擬似要素） - Web白描 - 自宅学習用ブログ&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/w/web-css-design/20260319/20260319012742.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-02-23 00:00:00</published>
  <title>::before と ::after（擬似要素）</title>
  <type>rich</type>
  <url>https://web-css-design.hatenadiary.jp/entry/2026/02/25/%3A%3Abefore_%E3%81%A8_%3A%3Aafter</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
