[Last Call] Learn how to a build a cloud-first strategyRegister Now

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

HTML line spacing


Please look at http://rkassoc.org/FWLSCO/tbl_test.htm

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

How can I fix that?
Richard Korts
Richard Korts
3 Solutions
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.
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Richard KortsAuthor Commented:
To all,

table cellpadding removed, css added.

Still extra horiz line spacing.
Add to your table/s

Why are you using nested tables?
Dave BaldwinFixer 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: http://meyerweb.com/eric/tools/css/reset/   After the reset code you define the CSS attributes you actually want.

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

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