Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5

Thread: CSS Tables

  1. #1
    Junior Member
    Join Date
    Oct 2005
    Location
    Ohio, U.S
    Posts
    17
    Member #
    11660
    Liked
    1 times
    OK so I always thought I was good with CSS, and I just compeltely f**ked that theory. I can't get Either of these table classes to work.

    First Code:
    HTML Code:
    <html>
    <head>
    <style type="text/css">
    
    table {
    border-width: 1px;
      border-color: #ffffff;
    }
    
    </style>
    </head>
    
    <body>
    
    <table>
    <tr>
    <td>
    Ladeda whatever I might want here.
    </td>
    </tr>
    </table>
    
    </body>
    </html>
    Second Code:
    HTML Code:
    <html>
    <head>
    <style type="text/css">
    
    table.nav {
    border-width: 1px;
      border-color: #ffffff;
    }
    
    </style>
    </head>
    
    <body>
    
    <table class="nav">
    <tr>
    <td>
    Ladeda whatever I might want here.
    </td>
    </tr>
    </table>
    
    </body>
    </html>
    Even on a black background, it's like it just throws away the whole CSS style. I have to edit it inline if I want the table to look like what I want. I can't do that though because 1: It's just wasting time and sspace and 2: I'd rather use styles since that's how it's done anymore.

  2.  

  3. #2
    Senior Member
    Join Date
    Feb 2005
    Location
    Canada
    Posts
    435
    Member #
    8983
    first:
    instead of border-width and border-color try:
    [minicode]border:1px #ffffff solid;[/minicode]
    the same with the second one...
    Thee Pyro Wolf

  4. #3
    Senior Member Stylise's Avatar
    Join Date
    Jul 2005
    Location
    Mount Martha, Australia
    Posts
    229
    Member #
    10679
    It's because you haven't set a border style.

    To do this use:

    border-style: [none|hidden|dotted|dashed|solid|double|groove|ridg e|inset|outset]

    Or as a more common way of doing it:

    border: length style color

    ie. border: 1px solid #FFF

  5. #4
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    What are you looking for? Borders are rendered differently on table-cell elements. You're most likely looking for border-spacing.
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  6. #5
    Senior Member Rince's Avatar
    Join Date
    Nov 2004
    Posts
    183
    Member #
    8318
    A white border round a table with a white background isn't going to show up. Set the border to a different colour or change the colour of the background and you will see what's happening. When you use css to apply the border to the table. It puts the border round the outside of the table and does not affect the border round the <td> table cells, which need to be styled explicitly.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:14 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com