• Search
  • Everything
  • Blog Entries
  • Daily Concept Videos
  • Users
  • Tags
  • Search Tags Only
Your Daily Concept : Get Smarter Everyday.

CSS to the Rescue! Episode 4: The CSS Box Model – Conversion Wednesday

Wednesday, February 16th, 2011

Dan G

Share and Enjoy:
  • Twitter
  • Facebook
  • YouTube
  • LinkedIn

Rating:


(+5 rating, 1 votes)

Loading ... Loading ...
Video Description
Today we’re going over the “CSS Box Model”. Think of all of the elements on an HTML page as boxes. If they were, this is what you would see if each layer of that box was pointed out to you. The 4 layers of the box model are margin, border, padding, and content. Once you understand the “CSS Box Model” you’ll also understand how CSS can manipulate the 4 layers of any element on your site.

So lets get started.

Here is a better description of each of the 4 layers of the CSS Box Model:
  1. Margin: Creates an area around the border. The margin does not have a background color, it is completely transarent.
  2. Border: A border goes around the padding & content and is affected by the background color of the box.
  3. Padding: Creates an area around the content and is also affected by the background color of the box.
  4. Content: This is where the text or images would appear.
So now that you know these 4 layers, when you specify the width and height properties of an element with CSS you should realize that your really just setting the width and height of the “Content” layer of the element. To know the full size of the element you must also know the padding, border, and margin for that element.

Here is the actual CSS you could use for each layer.

Remember that these examples are “INLINE” CSS, if you don’t want to make “INLINE” CSS changes some other methods you could use to make the same changes are by using a class, id, or tag identifier with a separate CSS document or a completely separate set of style tags embedded within the page’s HTML.

And that’s it, that’s our 4th episode in the “CSS To The Rescue” series. If you’ve learned something today that you realize your site could use and you don’t have the time or effort to put into changing or debugging a CSS issue on your site. Consider asking us to help you with these changes! We can comb your site and pick out all of the major outlying issues. Repair them with specific tests for your site, and then procure and analyze the change’s overall effect, and present you with the winning changes. It’s that easy!
What do YOU think? Comment below!
blog comments powered by Disqus

Need Better Conversion Results? Let Our Experts Audit Your Current Conversion Efforts for FREE!

We'll contact you within 1 business day to schedule your full-scale expert Conversion audit for free!

Home > Post
Recent Posts
Join Our Next Free Webinar!

Increase the Lifetime Value of your Customers with OPTIMIZED Email Marketing

How can you dramatically increase your email campaign response rates to generate more sales from past customers?

Attend our free webinar and learn:

  • How to increase campaign response rates and lifetime customer value
  • What metrics are the most important to track
  • When the best time to start ramping up your email marketing before holidays is
  • Why Optimized Email Marketing from Exclusive Concepts is the best choice for online retailers

When: Wednesday, May 9th at 2PM EST.

Join Now
Yahoo Small Business Partner
Not Receiving Our Daily Videos by E-Mail? They're Free. Ya Know? Sing Up Below!
Yahoo! Store Owner Non-Yahoo! Store Owner Other
Submit