HighDots Forums  

Re: absolutely no gap between table rows?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: absolutely no gap between table rows? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ian Hobson
 
Posts: n/a

Default Re: absolutely no gap between table rows? - 02-25-2008 , 05:11 PM






paulj wrote:
Quote:
Hi,

Is it possible to have absolutely no gap between table rows?
I believe it is.

Start with a doctype so your not in quirks mode, and put up a url.

Then we can see whats going on.


Reply With Quote
  #2  
Old   
Nik Coughlin
 
Posts: n/a

Default Re: absolutely no gap between table rows? - 02-25-2008 , 06:26 PM







"paulj" <mnispj (AT) googlemail (DOT) com> wrote

Quote:
On 25 Feb, 23:11, Ian Hobson <ian.hob... (AT) ntlworld (DOT) com> wrote:
paulj wrote:
Hi,

Is it possible to have absolutely no gap between table rows?

table {
border-collapse: collapse;
}



Reply With Quote
  #3  
Old   
paulj
 
Posts: n/a

Default Re: absolutely no gap between table rows? - 02-25-2008 , 07:09 PM



On 26 Feb, 00:26, "Nik Coughlin" <nrkn.... (AT) gmail (DOT) com> wrote:
Quote:
"paulj" <mni... (AT) googlemail (DOT) com> wrote in message

news:4a13e9e6-77f8-42a8-8919-465c26221f11 (AT) h25g2000hsf (DOT) googlegroups.com...

On 25 Feb, 23:11, Ian Hobson <ian.hob... (AT) ntlworld (DOT) com> wrote:
paulj wrote:
Hi,

Is it possible to have absolutely no gap between table rows?

table {
border-collapse: collapse;

}
Nick
Thanks for your reply but this still leaves a pretty large gap between
the rows (unless I am doing something very wrong).
Paul


Reply With Quote
  #4  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: absolutely no gap between table rows? - 02-25-2008 , 07:50 PM



paulj wrote:
Quote:
On 26 Feb, 00:26, "Nik Coughlin" <nrkn.... (AT) gmail (DOT) com> wrote:
"paulj" <mni... (AT) googlemail (DOT) com> wrote in message

Quote:
table {
border-collapse: collapse;

}


Thanks for your reply but this still leaves a pretty large gap between
the rows (unless I am doing something very wrong).
Most likely, but who can tell, you have not supplied us a link to your
attempt.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #5  
Old   
rf
 
Posts: n/a

Default Re: absolutely no gap between table rows? - 02-25-2008 , 07:56 PM




"paulj" <mnispj (AT) googlemail (DOT) com> wrote

Quote:
On 26 Feb, 00:26, "Nik Coughlin" <nrkn.... (AT) gmail (DOT) com> wrote:
"paulj" <mni... (AT) googlemail (DOT) com> wrote in message

news:4a13e9e6-77f8-42a8-8919-465c26221f11 (AT) h25g2000hsf (DOT) googlegroups.com...

On 25 Feb, 23:11, Ian Hobson <ian.hob... (AT) ntlworld (DOT) com> wrote:
paulj wrote:
Hi,

Is it possible to have absolutely no gap between table rows?

table {
border-collapse: collapse;

}

Nick
Thanks for your reply but this still leaves a pretty large gap between
the rows (unless I am doing something very wrong).
There is no gap between the rows. You may be perceiving the space above and
below the content (the numbers). This is simply the normal way text is layed
out. If you want to change that then you should fiddle with line-height,
probably on the <td>:
td {line-height: .8em}
but why do you want to do this anyway?

--
Richard.




Reply With Quote
  #6  
Old   
Petr Vileta
 
Posts: n/a

Default Re: absolutely no gap between table rows? - 02-25-2008 , 08:11 PM



paulj wrote:
Quote:
On 26 Feb, 00:26, "Nik Coughlin" <nrkn.... (AT) gmail (DOT) com> wrote:
"paulj" <mni... (AT) googlemail (DOT) com> wrote in message

news:4a13e9e6-77f8-42a8-8919-465c26221f11 (AT) h25g2000hsf (DOT) googlegroups.com...

On 25 Feb, 23:11, Ian Hobson <ian.hob... (AT) ntlworld (DOT) com> wrote:
paulj wrote:
Hi,

Is it possible to have absolutely no gap between table rows?

table {
border-collapse: collapse;

}

Nick
Thanks for your reply but this still leaves a pretty large gap between
the rows (unless I am doing something very wrong).
Paul
Maybe this can help you

tr {margin: 0; padding: 0;}
td {margin: 0; padding: 0 5 0 5;}
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from another non-spammer site please.)

Please reply to <petr AT practisoft DOT cz>



Reply With Quote
  #7  
Old   
paulj
 
Posts: n/a

Default Re: absolutely no gap between table rows? - 02-25-2008 , 08:23 PM



On 26 Feb, 01:56, "rf" <r... (AT) invalid (DOT) com> wrote:
Quote:
"paulj" <mni... (AT) googlemail (DOT) com> wrote in message

news:eacd2906-3540-450a-a4a9-fd164d1397d8 (AT) e6g2000prf (DOT) googlegroups.com...



On 26 Feb, 00:26, "Nik Coughlin" <nrkn.... (AT) gmail (DOT) com> wrote:
"paulj" <mni... (AT) googlemail (DOT) com> wrote in message

news:4a13e9e6-77f8-42a8-8919-465c26221f11 (AT) h25g2000hsf (DOT) googlegroups.com...

On 25 Feb, 23:11, Ian Hobson <ian.hob... (AT) ntlworld (DOT) com> wrote:
paulj wrote:
Hi,

Is it possible to have absolutely no gap between table rows?

table {
border-collapse: collapse;

}

Nick
Thanks for your reply but this still leaves a pretty large gap between
the rows (unless I am doing something very wrong).

There is no gap between the rows. You may be perceiving the space above and
below the content (the numbers). This is simply the normal way text is layed
out. If you want to change that then you should fiddle with line-height,
probably on the <td>:
td {line-height: .8em}
but why do you want to do this anyway?

--
Richard.
Thanks to all who responded.

rf - yes, it was solved by line-height (I guess the other respondents
knew that but I seemed to be asking for something different :-)


Reply With Quote
  #8  
Old   
John Hosking
 
Posts: n/a

Default Re: absolutely no gap between table rows? - 02-25-2008 , 08:47 PM



Petr Vileta wrote:
Quote:
paulj wrote:
On 26 Feb, 00:26, "Nik Coughlin" wrote:


table {
border-collapse: collapse;
}


Thanks for your reply but this still leaves a pretty large gap between
the rows (unless I am doing something very wrong).

Maybe this can help you

tr {margin: 0; padding: 0;}
td {margin: 0; padding: 0 5 0 5;}
5 whats?

Units are required for non-zero values.

--
John
Although the OP seems satisfied already.


Reply With Quote
  #9  
Old   
Petr Vileta
 
Posts: n/a

Default Re: absolutely no gap between table rows? - 02-26-2008 , 07:29 AM



John Hosking wrote:
Quote:
Petr Vileta wrote:
paulj wrote:
On 26 Feb, 00:26, "Nik Coughlin" wrote:


table {
border-collapse: collapse;
}


Thanks for your reply but this still leaves a pretty large gap
between the rows (unless I am doing something very wrong).

Maybe this can help you

tr {margin: 0; padding: 0;}
td {margin: 0; padding: 0 5 0 5;}

5 whats?

Units are required for non-zero values.
Of course, this is example only ;-) 5 units what author used. Somebody prefer
em, other pt or px.
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from another non-spammer site please.)

Please reply to <petr AT practisoft DOT cz>



Reply With Quote
  #10  
Old   
Petr Vileta
 
Posts: n/a

Default Re: absolutely no gap between table rows? - 02-26-2008 , 07:36 AM



Gregor Kofler wrote:
Quote:
Petr Vileta meinte:
Maybe this can help you

tr {margin: 0; padding: 0;}
td {margin: 0; padding: 0 5 0 5;}

td and tr don't know "margin". tr doesn't know "padding". [1]

[1]
http://www.w3.org/TR/CSS21/propidx.html
Yes, but I don't know if author use css2.1 or css2.0 and don't know too if all
browser really know about w3c reccomendation :-) Sometime is better to write
needless rule instead of not write this absurd rule ;-)
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from another non-spammer site please.)

Please reply to <petr AT practisoft DOT cz>



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.