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

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or 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

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. 🚀

  • 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
      • • Vibe Coding
    • Showing results for:
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators
    • Close
  • Cool Beans
    Cool Beans
    6,937 Points

    i am trying to understand how can I move .btn elements to the center. Tried everything and does not work.

    Posted on Jul 19, 2024 by Cool Beans
    Cool Beans
    6,937 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    2 Answers

  • Sean Fallon
    Sean Fallon
    8,516 Points

    Some elements don't work with child selectors. Example div ~ h1 p > h1 and so on.

    Posted on May 29, 2021 by Sean Fallon
    Sean Fallon
    8,516 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    4 Answers

  • Ubo Town
    Ubo Town
    3,227 Points

    .btn

    Posted on Jan 27, 2021 by Ubo Town
    Ubo Town
    3,227 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    1 Answer

  • Jake Almendarez
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Jake Almendarez
    Front End Web Development Techdegree Student 4,250 Points

    button element or input type submit?

    Posted on Jun 12, 2020 by Jake Almendarez
    .a{fill-rule:evenodd;}techdegree
    Jake Almendarez
    Front End Web Development Techdegree Student 4,250 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    1 Answer

  • Shung Chen
    Shung Chen
    6,526 Points

    What is the diff between these selectors: "ol li" and "ol~li"

    Posted on May 27, 2020 by Shung Chen
    Shung Chen
    6,526 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    1 Answer

  • Delicia Wharton
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Delicia Wharton
    UX Design Techdegree Student 11,098 Points

    Still can't get adjacent buttons to work (btn + btn)

    Posted on Mar 3, 2020 by Delicia Wharton
    .a{fill-rule:evenodd;}techdegree
    Delicia Wharton
    UX Design Techdegree Student 11,098 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    2 Answers

  • Dwi Andreas Prawiranegara
    Dwi Andreas Prawiranegara
    7,181 Points

    Combinator for multiple children

    Posted on Apr 1, 2018 by Dwi Andreas Prawiranegara
    Dwi Andreas Prawiranegara
    7,181 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    1 Answer

  • ian izaguirre
    ian izaguirre
    3,220 Points

    I do not understand the difference between a child and a sibling ?

    Posted on Sep 3, 2017 by ian izaguirre
    ian izaguirre
    3,220 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    2 Answers

  • Ben Mohammad
    Ben Mohammad
    5,659 Points

    why does my login button follow the adjacent sibling/or child when i only want the reset button to follow suit.

    Posted on May 20, 2017 by Ben Mohammad
    Ben Mohammad
    5,659 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    1 Answer

  • Matthew Keys
    Matthew Keys
    1,922 Points

    Confusion with the ".btn + .btn"

    Posted on Mar 21, 2017 by Matthew Keys
    Matthew Keys
    1,922 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    2 Answers

  • Shahar Golan
    Shahar Golan
    819 Points

    inline-block

    Posted on Mar 2, 2017 by Shahar Golan
    Shahar Golan
    819 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    1 Answer

  • deepak sharma
    deepak sharma
    3,844 Points

    why dont be use margin-right in adjacent selector in .btn + .btn.. and why is it not working

    Posted on Dec 31, 2016 by deepak sharma
    deepak sharma
    3,844 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    2 Answers

  • Jiho Song
    Jiho Song
    16,469 Points

    What is the difference between using ~ and just writing down the specific type name? <CSS>

    Posted on Dec 30, 2016 by Jiho Song
    Jiho Song
    16,469 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    2 Answers

  • Kailash Seshadri
    Kailash Seshadri
    3,087 Points

    Difference between using a space and a ~ symbol

    Posted on Jul 9, 2016 by Kailash Seshadri
    Kailash Seshadri
    3,087 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    2 Answers

  • Kailash Seshadri
    Kailash Seshadri
    3,087 Points

    Adjacent Sibling Combinators

    Posted on Jul 9, 2016 by Kailash Seshadri
    Kailash Seshadri
    3,087 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    1 Answer

  • Dylan Carter
    Dylan Carter
    4,780 Points

    I don't get what the difference is in using the > for children instead of just putting a space like we were doing?

    Posted on May 15, 2016 by Dylan Carter
    Dylan Carter
    4,780 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    3 Answers

  • Dylan Carter
    Dylan Carter
    4,780 Points

    So, its best to use only class selectors?

    Posted on May 14, 2016 by Dylan Carter
    Dylan Carter
    4,780 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    2 Answers

  • Karen Spicer
    Karen Spicer
    5,548 Points

    Cascade Importance, Specificity and Order

    Posted on Sep 29, 2015 by Karen Spicer
    Karen Spicer
    5,548 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    4 Answers

  • Ary de Oliveira
    PLUS
    Ary de Oliveira
    Courses Plus Student 28,304 Points

    Syntax Definition Command

    Posted on Sep 10, 2015 by Ary de Oliveira
    Ary de Oliveira
    Courses Plus Student 28,304 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    2 Answers

  • Sean Flanagan
    Sean Flanagan
    33,236 Points

    General Sibling Combinators

    Posted on May 25, 2015 by Sean Flanagan
    Sean Flanagan
    33,236 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    2 Answers

  • Hammad Ahmed
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Hammad Ahmed
    Full Stack JavaScript Techdegree Student 11,910 Points

    Difference between Descendant and Child selectors

    Posted on Mar 14, 2015 by Hammad Ahmed
    .a{fill-rule:evenodd;}techdegree
    Hammad Ahmed
    Full Stack JavaScript Techdegree Student 11,910 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Child, Adjacent, and General Sibling Combinators

    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.