• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 729
  • Last Modified:

content area background image showing padding - need to fix

The background image I have in my article area shows a border on the top and bottom.  I want no border.  How do I fix?

http://www.sharonfarber.com/sftest1.html
0
Revolution9
Asked:
Revolution9
1 Solution
 
GaryCommented:
Add margin-bottom:0 to the second paragraph tag in the header
and margin-top:0 to the paragraph tag in the footer.
0
 
Kyle HamiltonData ScientistCommented:
since you're using fixed heights for your layout, you could add an overflow rule to them. That'll take care of the gaps, without having to reset margins on specific h or p elements.

but keep in mind that you will get scrollbars when your content exceeds the specified height.

header, article, footer{
   overflow:auto;
}
0
 
Revolution9Author Commented:
Right on the money, as usual!  Thanks!!
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now