Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Methee Saengow5,474 Points
About the floated divs' width actual size do not match with the size of 46.5%
About the floated divs' width actual size do not match with the size of 46.5% Hi, in the video we have specified the size of the floated .resort and .tips classes to be 46.5%
The .resort and .tips classes both have the same div parent with the class named .secondary-content in which the max-width had been prior specified at 960px.
The floated. resort and .tips classes take up the space of 46.5% of the 960px of the parent div. Then it means the size of each floated should be 446.4px but i use the chrome to inspect the 2 floated elements and found that the width of each floated div is only 399.9 px.
Just would like to have some guidance from friends or teacher here:
Are the width specify to both .resort and .tips relative to div with the class "secondary-content" ? Why the width of both floated divs are 399.9px not 446.4 ? It seems both floated divs have margin to each other which may make the width not 446.4px I am very new to css and web design, please help me