View Single Post
Old 11-13-2012, 03:35 PM   PM User | #9
crazyponytail
New to the CF scene

 
Join Date: Nov 2012
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
crazyponytail is an unknown quantity at this point
Quote:
Originally Posted by Excavator View Post
Hello crazyponytail,
It always seems like the box model is the hardest concept for new coders to grasp. See the box model here. The box model says that whatever you put inside an element cannot be larger than that element. margin/padding/border all count when figuring width/height.

When you add that 1px border to 550px wide section#main_section, you make it 552px wide.
If you need those borders for the final product, you will need to adjust your widths. If you are just using borders to make your elements visible during development, a different background color on each element works much better since the color will not affect the width.

There is no need for positioning in your layout yet. Look at how easy it can be -

Thank you, I will analyze what you have done and learn something from it!

Again, thank you!
crazyponytail is offline   Reply With Quote