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 trialRaghav Agrawal
4,654 Pointshow to estimate the appropriate width,margin or padding values?
In the how to make your website stage when you are assigning values to the elements like margin or padding, how can one correctly estimate what the value will look like on the page or how should one decide what value to put in terms of pixels?
1 Answer
Markus Ylisiurunen
15,034 PointsHi Raghav!
Margins and paddings are there to do nice layouts and visual looks. And you're the designer who decides what looks good or bad. There is no exact values you should put each time. You always put the values which look and work the best for the exact situation.
When you do web design for a little time you'll get a good hang of which might look good and work nicely. Just put a value you think works best and then you refresh your browser. If it looks bad you replace the value with something else. It's all about the experimenting and the look you're trying to achieve.
Hope this text helps.
Raghav Agrawal
4,654 PointsRaghav Agrawal
4,654 PointsThanks again Markus,btw i just checked your profile,its really impressive that you have completed so much in just one month,how many hours do you sit on teamtreehouse everyday?
Markus Ylisiurunen
15,034 PointsMarkus Ylisiurunen
15,034 PointsNo problem! Well I had a pretty nice knowledge about css and html even before I got here. I just felt like I had little parts missing here and there. So I started a track about html and css and I pretty much watched videos on 1.5x - 2x speed because I knew the stuff already. Now I'm learning JavaScript and JQuery and next will be PHP. So I think the reason why I have so much points in a such a short time is that I've watched videos such a high speed.