Results 1 to 4 of 4

Thread: CSS: define table border [Resolved]

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    CSS: define table border [Resolved]

    How do you define a table border in CSS? I'm trying to do a class to make the top and bottom border of my table be a single thin line and I'm having no luck:
    Code:
     .test {border: 0px;1px;0px;1px;}
    Last edited by ober0330; Jun 21st, 2004 at 01:42 PM.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  2. #2

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    Got it:
    Code:
    .tbl {
    	  border-top: 1px solid Black;
         border-right: 0px solid White;
         border-bottom: 1px solid Black;
         border-left: 0px solid White;
    }
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Originally posted by ober0330
    Got it:
    Code:
    .tbl {
    	  border-top: 1px solid Black;
         border-right: 0px solid White;
         border-bottom: 1px solid Black;
         border-left: 0px solid White;
    }
    Since you've specified no border on the right or left, the solid white is unnecessary, and infact can be shortened to the following:
    Code:
    .tbl {
         border: 1px 0px 1px 0px solid Black;
    }
    It'll load faster that way.

    TG
    Last edited by techgnome; Jun 21st, 2004 at 04:23 PM.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    Actually, your suggestion doesn't work at all, but I can take out the white borders and it works.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width