✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
    • Showing results for:
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after
    • Close
  • Ubo Town
    Ubo Town
    3,227 Points

    imgs with ::before

    Posted on Feb 13, 2021 by Ubo Town
    Ubo Town
    3,227 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    2 Answers

  • Kirt Perez
    Kirt Perez
    7,374 Points

    Can you not use single quotes with the content property?

    Posted on Nov 14, 2020 by Kirt Perez
    Kirt Perez
    7,374 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    1 Answer

  • Rouillie Wilkerson
    Rouillie Wilkerson
    10,419 Points

    ::before, not working as indicated. https://w.trhou.se/zdg5bwtmty

    Posted on Dec 20, 2018 by Rouillie Wilkerson
    Rouillie Wilkerson
    10,419 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    1 Answer

  • Aakash Srivastav
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points

    ::before and ::after

    Posted on Jan 20, 2018 by Aakash Srivastav
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    2 Answers

  • Saqib Ishfaq
    Saqib Ishfaq
    13,912 Points

    Pseudo-elements do not work with images and form elements. ???

    Posted on Nov 11, 2017 by Saqib Ishfaq
    Saqib Ishfaq
    13,912 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    1 Answer

  • pat barosy
    pat barosy
    6,759 Points

    Why won't dots show using display:inline?

    Posted on Sep 28, 2017 by pat barosy
    pat barosy
    6,759 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    2 Answers

  • Alex Wylie
    Alex Wylie
    4,364 Points

    Pseudo-Elements - ::before and ::after Why do the icons stay as links?

    Posted on May 27, 2017 by Alex Wylie
    Alex Wylie
    4,364 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    2 Answers

  • Peter Tomasiewicz
    Peter Tomasiewicz
    5,592 Points

    "" for creating empty content that is then defined and styled in css ?

    Posted on Sep 5, 2016 by Peter Tomasiewicz
    Peter Tomasiewicz
    5,592 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    1 Answer

  • Andrew Geisler
    Andrew Geisler
    7,246 Points

    Does "source code" = the HTML document?

    Posted on Jan 28, 2016 by Andrew Geisler
    Andrew Geisler
    7,246 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    2 Answers

  • Diego Murray
    Diego Murray
    2,515 Points

    Pseudo Classes or Pseudo Elements

    Posted on Aug 11, 2015 by Diego Murray
    Diego Murray
    2,515 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    2 Answers

  • gregsmith5
    gregsmith5
    32,615 Points

    How would I get two adjacent orange dots?

    Posted on Jun 18, 2015 by gregsmith5
    gregsmith5
    32,615 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    2 Answers

  • Santiago Enciso
    Santiago Enciso
    17,789 Points

    CSS not generating images

    Posted on Apr 14, 2015 by Santiago Enciso
    Santiago Enciso
    17,789 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    5 Answers

  • AR Ehsan
    AR Ehsan
    7,912 Points

    Why does Guil use two colons for after and before.

    Posted on Mar 22, 2015 by AR Ehsan
    AR Ehsan
    7,912 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    2 Answers

  • Geoffrey Neal
    Geoffrey Neal
    30,301 Points

    Unable to resize images created using the ::before pseudo-element.

    Posted on Mar 19, 2015 by Geoffrey Neal
    Geoffrey Neal
    30,301 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    2 Answers

  • Harvey Ball
    Harvey Ball
    8,546 Points

    :before or background image for small 'label' images

    Posted on Mar 17, 2015 by Harvey Ball
    Harvey Ball
    8,546 Points
    • CSS
    • CSS Selectors
    • Advanced Selectors
    • Pseudo-Elements - ::before and ::after

    3 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.