Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJaqueline Banez
1,572 PointsFloated Columns, when following the directions to set columns left and right as in the video its showing different?
I'm currently in the 'Floated Columns' section in the 'CSS Basics' of the Front End Web Development track. While following along with the code as below, the outcome results aren't showing exactly in the video. The outcome that i see, is the .tips div with the photo is pushed to the bottom of the page, and the footer orange border bar is through the tips photo and the footer text is of the left side. The resorts div is above the tips div with its text and photo like it showed initially when they were 'stacked on one another'. The tips div and resorts div are not 'side by side' as they should be with the float element.
.resorts, .tips, { width: 46.5%;}
.tips { float: right; }
.resorts { float: left; }
Has this occurred for anyone else? If so, what did you do to 'correct' this? And / or is this just the default of how it is to look on my end?
Any advice would be helpful. Thank you. :)
note - when I went to use the overflow function, the entire page when back to how it looked at default before adding float as part of the property. Am I missing something, do i need to edit the parent?
1 Answer
Robert Gulley
Front End Web Development Techdegree Student 10,722 PointsHi Jaqueline! Try removing the comma after this .tips when specifying the width. If you have multiple items, do not include a comma after the last one.
.resorts, .tips {
width: 46.5%;
}
This should solve your problem!
Jaqueline Banez
1,572 PointsJaqueline Banez
1,572 PointsHi Robert, That fixed it! Thank you so much!