Note how ‘padding: 10px’ adds 10px of internal space to the div to all four sides: top, right, bottom and left. Therefore, to keep the width static, I’ve reduced it to 780px to allow for 10px padding on the left and another 10px on the right…
Just to add to what Eamonn said, looking at your code you are going to end up with multiple instances of <div id="blog-padding"> on the page. Id’s should be unique, once per page. Try changing it to <div class="blog-padding"> and alter the css to reflect that.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".