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!
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
Gabriel Ward20,222 Points
margins and padding
Kevin Faust15,353 Points
its all pre determined before the videos. generally speaking, no one is able to perfectly know what margin and padding to know on their first try You generally will do trial and error (try a margin/padding, check how it looks, and just keep changing the values until you get the desired design outcome).
To an extent, yes. For complex designs, you'll have better success first designing inside photoshop/illustrator/fireworks and then recreating your design with css. In this case, you can make it look great, and then grab your numbers after. You'll get a much better product. After time, you'll find you can do a few simpler things without predesigning, even just approximating what you need by looking at the screen. Also, if you aren't using 'inspect element' inside Chrome to help you try out margins/padding/etc, I strongly suggest it.
Claudine Bananal1,756 Points
Yes, it's usually trial and error. It's best to have a design comp as reference/guide, which you will if you're working on another person's design. I think if one does it often, the person gets used to it and almost always get the right estimate just by looking at the design. There's also a page ruler on Chrome App or even Photoshop that you can use. :)