quick css question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zester
    Confirmed User
    • Jul 2003
    • 5344

    #1

    quick css question

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

    what is the equivalent of cellspacing="0" in CSS?
    Last edited by Zester; 03-04-2005, 11:09 AM.
    * Mainstream ? $65 per sale
    * new male contraception
  • Tom_PM
    Porn Meister
    • Feb 2005
    • 16443

    #2
    I think you'd be looking at a margin.. Check some tutorial type places and I think thats what'll do it for you.
    43-922-863 Shut up and play your guitar.

    Comment

    • jawanda
      Confirmed User
      • Feb 2003
      • 6040

      #3
      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.

      Comment

      • broke
        Confirmed User
        • Aug 2003
        • 4501

        #4
        You are better off leaving cellspacing in html.

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

        Comment

        • Zester
          Confirmed User
          • Jul 2003
          • 5344

          #5
          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 ?
          * Mainstream ? $65 per sale
          * new male contraception

          Comment

          • moltar
            Confirmed User
            • Feb 2005
            • 116

            #6
            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;
            }

            Comment

            Working...