Lamtha2 Logo
01296 768182

Web Design

Ecommerce

SEO Marketing

Our Work

Unwanted space when using the P tag in tables

We’ve all done it – used a table to layout a contact form or a repeating data item on a dynamic page. When it comes to styling these tables we use h1, h2, p tags and everyting looks fine in Internet Explorer.. job done.

The touble is IE collapses the margin above and below the P tag when placed in a table but other browsers do not which results in ugly spaced out text labels and boxes.

Don’t forget to add margin to your p tags.