GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   quick css question (https://gfy.com/showthread.php?t=439923)

Zester 03-04-2005 01:08 PM

quick css question
 
I know cellpadding="0" is padding: 0px in CSS

what is the equivalent of cellspacing="0" in CSS?

Tom_PM 03-04-2005 01:19 PM

I think you'd be looking at a margin.. Check some tutorial type places and I think thats what'll do it for you.

jawanda 03-04-2005 01:22 PM

http://www.w3schools.com/css/css_reference.asp

You're going to need to use padding instead of cellspacing to get the same effect i believe.

broke 03-04-2005 01:24 PM

You are better off leaving cellspacing in html.

You could use border-collapse: collapse, but it can be unreliable.

Zester 03-05-2005 02:06 AM

Quote:

Originally Posted by broke
You are better off leaving cellspacing in html.

You could use border-collapse: collapse, but it can be unreliable.

why is it unreliable ?

moltar 03-05-2005 03:19 AM

Here is the code I use to style tables:

Code:

table {
        border-left: 1px solid #B6B6B6;
        border-collapse: collapse;
        margin: auto;
        text-align: left;
        font-size: 1em;
}
th,
td {
        padding: 5px;
        border-right: 1px solid #B6B6B6;
        border-bottom: 1px solid #B6B6B6;
}



All times are GMT -7. The time now is 05:41 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123