1

On this page, the text under the photos in the main section (a.event) isn't showing the 5px padding top and bottom. Any ideas why? Thanks guys =)

a.event {
width:315px;
height:auto;
border:0;
padding: 5px 0;
}
Tara
  • 1,528
  • 4
  • 20
  • 28

2 Answers2

2

Your a tag is wrapping around the image and the text. So the padding appears above the image and below the text.

Firebug is a good tool for inspecting the HTML that's being rendered. It makes it trivial to find these kinds of errors.

Ciaran
  • 1,904
  • 16
  • 27
  • p.s. I voted to close this question because it's too localised - it's not generally applicable outside your particular circumstances. – Ciaran May 19 '11 at 10:32
0

wrap the text with <p>...</p>

then in your css:

a.event p {
padding: 5px 0;
}
akjoshi
  • 15,374
  • 13
  • 103
  • 121
a-second-mix
  • 372
  • 3
  • 10