HTML line spacing


Please look at

I want the table rows single spaced; I see no reason why they double space.

How can I fix that?
Richard KortsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

GaryConnect With a Mentor Commented:
Add to your css

td {
    padding: 0;
teodor bircaCommented:
you want to remove cellpadding="2"
Richard KortsAuthor Commented:
To Cathal

It's better, but there is still horizontal spacing I don't want.
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Richard KortsAuthor Commented:
To all,

table cellpadding removed, css added.

Still extra horiz line spacing.
GaryConnect With a Mentor Commented:
Add to your table/s

Why are you using nested tables?
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
Using <table width="100%" class="pt12"> leaves you with the default margins and padding which vary from browser to browser.  You might be better off putting a CSS reset code at the top of your CSS which is used to set everything to 0.  The classic one from Eric Meyer is available on his web site:   After the reset code you define the CSS attributes you actually want.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.