Solved

HTML line spacing

Posted on 2014-01-27
6
203 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
6 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 400 total points
Comment Utility
Add to your css

td {
    padding: 0;
}
0
 
LVL 3

Expert Comment

by:teodor birca
Comment Utility
you want to remove cellpadding="2"

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

Author Comment

by:Richard Korts
Comment Utility
To Cathal

It's better, but there is still horizontal spacing I don't want.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:Richard Korts
Comment Utility
To all,

table cellpadding removed, css added.

Still extra horiz line spacing.
0
 
LVL 58

Assisted Solution

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

Why are you using nested tables?
0
 
LVL 82

Assisted Solution

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now