Results 1 to 2 of 2

Thread: CSS linking border

  1. #1
    Join Date
    Jul 2009
    Posts
    5

    CSS linking border

    If I don't want to use the "border=1" attribute in a table, is there a way to link in a border from a css style page?

    I have tried .border {border:1px;}
    .border {border-width: 1px;}/{border-width: solid;}

    nothing is passing to the webpage with the class attribute to a table.

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    With CSS styling for tables you have to style the border separately for the table perimeter and then again for the td tags

    table { border: 1px solid red; }
    td { border: 1px solid black; }

    You can then style the td tags individual sides like td { border-right: 1px solid black; }
    or create a class just for one or two td tags.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. CSS Help
    By Yume in forum Web Hosting and Domain Names
    Replies: 1
    Last Post: 13 Jun 2007, 04:35 AM
  2. CSS and PHPBB Help
    By e3_host in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 01 Sep 2006, 01:47 AM

Posting Permissions

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