Solved

HTML line spacing

Posted on 2014-01-27
6
208 Views
Last Modified: 2014-01-27
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
Comment
Question by:Richard Korts
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 400 total points
ID: 39813714
Add to your css

td {
    padding: 0;
}
0
 
LVL 3

Expert Comment

by:teodor birca
ID: 39813733
you want to remove cellpadding="2"

http://www.w3schools.com/tags/att_table_cellpadding.asp
0
 

Author Comment

by:Richard Korts
ID: 39813735
To Cathal

It's better, but there is still horizontal spacing I don't want.
0
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 

Author Comment

by:Richard Korts
ID: 39813748
To all,

table cellpadding removed, css added.

Still extra horiz line spacing.
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 400 total points
ID: 39813751
Add to your table/s
cellspacing="0"

Why are you using nested tables?
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 100 total points
ID: 39813776
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question