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

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

HTML line spacing

Hi,

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?
0
Richard Korts
Asked:
Richard Korts
3 Solutions
 
GaryCommented:
Add to your css

td {
    padding: 0;
}
0
 
teodor bircaCommented:
you want to remove cellpadding="2"

http://www.w3schools.com/tags/att_table_cellpadding.asp
0
 
Richard KortsAuthor Commented:
To Cathal

It's better, but there is still horizontal spacing I don't want.
0
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.
0
 
GaryCommented:
Add to your table/s
cellspacing="0"

Why are you using nested tables?
0
 
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.
0

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