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
Luca Lepori
Courses Plus Student 124 PointsCSS Positioning Problem: I'm stumped - and it is probably something right under my nose...
Hi there,
I think this is a CSS issue, but while I have tried a number of different approaches to solving this layout / positioning issue I have not made any meaningful progress. I have spent a totally ridiculous amount of time on this, and have tried researching, searching, validating, etc. to figure it out to no avail.
My hunch is that someone here will look at the images linked below and know what is causing the weirdness with the positioning of the text and fields in the payment area of this exercise...
Here are the HTML and the CSS files: https://gist.github.com/anonymous/9881826
Here are some images to show what the page is supposed to look like, and the issue that I am having: http://s748.photobucket.com/user/43cd4728/library/CSS
Any and all help, pointers and/or advice is much appreciated - thank you!
2 Answers
Luca Lepori
Courses Plus Student 124 PointsI found the problem - I had gone through several iterations in working on this exercise, and then quite a few more in troubleshooting the layout/positioning issue that I posted about. One of the earlier steps in trying to identify and isolate the problem was to check for typographical and syntactical errors. After a few passes on that approach, and a number of corrections later, I moved on and did not return to it - thinking that issue must lie elsewhere. Well... I felt like it was something under my nose and I was right about that lol. Turns out that I had not corrected two references to CSS classes in the HTML. It all came down to changing two C's from lower case to upper case. The devil is often in the details!
Bella Ratmelia
Front End Web Development Techdegree Graduate 28,947 PointsHave you considered using a table for your form fields and labels? If you have something against tables, you might want to consider putting a <br /> after every input field~
Luca Lepori
Courses Plus Student 124 PointsThank you, Bella - very kind of you to have a look and offer good advice! I probably would have tried that approach [and others] to get the desired result except that this was an exercise that required coding in a specific way, i.e. without tables per se. Thanks again, much appreciated :)