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 trial
smriti chawla
2,566 PointsUnable to fix page layout. Pls help. (HTML/CSS)
Hi guys, I am looking to recreate a layout similar to this page for practice purposes: http://resource.vwo.com/hero-shot-images-that-drive-conversions
Form on the above page is different from what I've created. But I want the same content-form layout with content all stacked on left and form on the right. Can you please tell me what am I doing wrong?
Here is the link to my Workspace: https://w.trhou.se/r7idrt80g0
1 Answer
smriti chawla
2,566 PointsIt worked. Thanks so much, Martin. :)
martinjones1
Front End Web Development Techdegree Graduate 44,824 Pointsmartinjones1
Front End Web Development Techdegree Graduate 44,824 PointsHi Smriti,
Firstly, I would update the #wrapper CSS, removing the 'display:inline' rule. The since you want to stop it from taking up the full width, for test purposes try something small like width:200px, you can the adjust this, change to % etc
Lastly, add float: left to this rule as well, so this updated verison for testing would be:
wrapper_text {
padding-left: 15px; padding-right: 15px; margin-left: auto; margin-right: auto; /* display: inline; */ float: left; width: 200px; }