tried 'padding' and 'margin' but do not seem to work

S

Sharon Lee

I am having trouble with some formatting I need the text in a table to
be flush with the top and bottom of the cells but I cannot seem to get
it any closer than the default setting.

I am using CSS and have tried setting the td value with padding: 0
(and listed them individually) and margin: 0 (and listed them
individually) but nothing changes.

my code loops through the following code and loads:

a table,
a row, a cell with an <a> link and text
a row with a cell with some text
a row with a cell an <a> link and text
closes table

Has anyone got any suggestions about the sort of things that I could
look at that might solve this problem?

Can an <a> link have a padding value?

(this might seem a small problem but it is a big problem for me)

Thanks and Happy New Year
 
J

Jay

Sharon Lee said:
I am having trouble with some formatting I need the text in a table to
be flush with the top and bottom of the cells but I cannot seem to get
it any closer than the default setting.

Is this what you're looking for?

<table cellpadding="0" cellspacing="0">

- J
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top