🤑 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

  • 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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • eric zhou
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    eric zhou
    Front End Web Development Techdegree Student 381 Points

    In 1st float video, the image columns collapse, however if you only set float: right to .resort, it will appear fine????

    Posted September 1, 2020 12:44am by eric zhou
    .a{fill-rule:evenodd;}techdegree
    eric zhou
    Front End Web Development Techdegree Student 381 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    0 Answers

  • Gabriel Zacarias
    Gabriel Zacarias
    3,041 Points

    Why not just use inline-block?

    Posted August 19, 2020 11:02pm by Gabriel Zacarias
    Gabriel Zacarias
    3,041 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    0 Answers

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

    margin for resorts div??

    Posted May 19, 2020 1:56am by Jake Almendarez
    .a{fill-rule:evenodd;}techdegree
    Jake Almendarez
    Front End Web Development Techdegree Student 4,250 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    2 Answers

  • jlampstack
    jlampstack
    23,932 Points

    Reason for overflow: auto instead of hidden?

    Posted April 13, 2020 11:05am by jlampstack
    jlampstack
    23,932 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    2 Answers

  • vamosrope14
    vamosrope14
    14,932 Points

    Does it matter if we know the size of the parent element container?

    Posted May 11, 2019 12:26am by vamosrope14
    vamosrope14
    14,932 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Alexander D
    Alexander D
    8,685 Points

    Float Vs. Flex. Can't center 3 floated items.

    Posted March 20, 2019 10:40pm by Alexander D
    Alexander D
    8,685 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Kevin Schade
    Kevin Schade
    3,503 Points

    My .resorts, .tips rule won't adjust width??

    Posted March 13, 2019 5:54pm by Kevin Schade
    Kevin Schade
    3,503 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Victor Mercier
    Victor Mercier
    14,667 Points

    Float issue

    Posted February 6, 2019 5:11pm by Victor Mercier
    Victor Mercier
    14,667 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Aitor Laskurain
    Aitor Laskurain
    1,160 Points

    Problems with float left right

    Posted January 20, 2019 10:15am by Aitor Laskurain
    Aitor Laskurain
    1,160 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Larry Gonzales
    Larry Gonzales
    10,112 Points

    .resorts, and .tips aren't adjusting width

    Posted September 29, 2018 2:16am by Larry Gonzales
    Larry Gonzales
    10,112 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Methee Saengow
    Methee Saengow
    5,474 Points

    About the floated divs' width actual size do not match with the size of 46.5%

    Posted June 19, 2018 4:17pm by Methee Saengow
    Methee Saengow
    5,474 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Hai Huang
    Hai Huang
    12,716 Points

    Inline-block instead of float

    Posted March 26, 2018 2:30pm by Hai Huang
    Hai Huang
    12,716 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    2 Answers

  • Bartlomiej Zabielski
    PLUS
    Bartlomiej Zabielski
    Courses Plus Student 10,363 Points

    floats with Guil Hernandez

    Posted February 23, 2018 10:17am by Bartlomiej Zabielski
    Bartlomiej Zabielski
    Courses Plus Student 10,363 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    3 Answers

  • Nafitha Mohamed
    Nafitha Mohamed
    2,637 Points

    NAVIGATION MENU

    Posted September 11, 2017 4:21am by Nafitha Mohamed
    Nafitha Mohamed
    2,637 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Navneet Singh
    Navneet Singh
    2,424 Points

    Can Float only given to DIV tag.?

    Posted July 30, 2017 9:03am by Navneet Singh
    Navneet Singh
    2,424 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    2 Answers

  • Patrick Vanegas
    Patrick Vanegas
    6,971 Points

    When floating left or right, do the margins of the floated elements get removed?

    Posted March 16, 2017 7:31pm by Patrick Vanegas
    Patrick Vanegas
    6,971 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Stefana Gloginic
    Stefana Gloginic
    3,997 Points

    Float: left

    Posted December 19, 2016 8:27pm by Stefana Gloginic
    Stefana Gloginic
    3,997 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    3 Answers

  • Elvira Gizatullina
    Elvira Gizatullina
    14,780 Points

    give .wildlife the property and value that forces any padding and border widths into its total width and heigh. Help..

    Posted September 2, 2016 12:44am by Elvira Gizatullina
    Elvira Gizatullina
    14,780 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Abhishek Jakhar
    Abhishek Jakhar
    28,612 Points

    We could have given common class to both divs but why have we taken class resorts and class tips ?

    Posted June 9, 2016 4:56am by Abhishek Jakhar
    Abhishek Jakhar
    28,612 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Travis Johnson
    Travis Johnson
    4,990 Points

    Why aren't the .tips and .resorts images "floating" left or right?

    Posted February 10, 2016 6:27pm by Travis Johnson
    Travis Johnson
    4,990 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    11 Answers

  • Francis N
    Francis N
    10,376 Points

    I have a div container of 1000px and I want two columns (700px/300px) to float next to each other.

    Posted February 10, 2016 1:31am by Francis N
    Francis N
    10,376 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    3 Answers

  • Amaan Vaddadi
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Amaan Vaddadi
    Front End Web Development Techdegree Student 3,750 Points

    Width property doesn't execute as shown in the video and hence my floats are not functioning as it should. help>??

    Posted January 31, 2016 11:52pm by Amaan Vaddadi
    .a{fill-rule:evenodd;}techdegree
    Amaan Vaddadi
    Front End Web Development Techdegree Student 3,750 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    2 Answers

  • Marcus Schumacher
    Marcus Schumacher
    16,616 Points

    How would I go about downloading the images from your work space onto my pc running windows 10?

    Posted January 22, 2016 12:19am by Marcus Schumacher
    Marcus Schumacher
    16,616 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    2 Answers

  • rajbee
    rajbee
    6,657 Points

    floating - positioning of the second div

    Posted September 4, 2015 6:04am by rajbee
    rajbee
    6,657 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • rajbee
    rajbee
    6,657 Points

    How do you see the exact size of an element when using relative sizing ?

    Posted September 4, 2015 5:57am by rajbee
    rajbee
    6,657 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • J V
    J V
    3,414 Points

    Why do we have to set max-width for 'img' header in order for the width to adjust properly in the 'resort/tips' classes?

    Posted August 20, 2015 7:41pm by J V
    J V
    3,414 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Ladan Amjad
    Ladan Amjad
    1,051 Points

    Is there a resource/document/website that has all the default CSS property and values?

    Posted July 17, 2015 12:55am by Ladan Amjad
    Ladan Amjad
    1,051 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Jay Valentine
    PLUS
    Jay Valentine
    Courses Plus Student 4,389 Points

    Workspaces not loading?

    Posted April 30, 2015 1:49pm by Jay Valentine
    Jay Valentine
    Courses Plus Student 4,389 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

  • Felix Yakubov
    Felix Yakubov
    17,475 Points

    Why float and not inline?

    Posted April 11, 2015 1:57pm by Felix Yakubov
    Felix Yakubov
    17,475 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    3 Answers

  • Jane Marianne Filipiak
    Jane Marianne Filipiak
    7,444 Points

    I cannot launch the workspace from this tutorial: CSS Basics/ Floats. Why would that be?

    Posted January 12, 2015 4:24am by Jane Marianne Filipiak
    Jane Marianne Filipiak
    7,444 Points
    • CSS
    • CSS Basics (2014)
    • Basic Layout
    • Floats

    1 Answer

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.