Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    108
    Thanks
    0
    Thanked 0 Times in 0 Posts

    bordersize with css

    Hi,

    I want to make my border smaller than the size "1" of Frontpage... can this be done with style-sheets, using a colour other than black (standard)?

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    -27 28' 22" , 153 1' 22"
    Posts
    135
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could use something like the following:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    
    <html>
    <head>
    <style>
    <!--
    td.small-border {border-style: solid; border-width: 1px;}
    //-->
    </style>
    </head>
    <body>
    <table summary="">
    <tr><td class="small-border">gfdgdfgdfg</td></tr>
    </table>
    </body>
    </html>
    Check out W3Schools for heeps more info on this stuff.
    "Computers are considered female - As soon as you make a commitment to one, you find yourself spending half your paycheck on accessories for it."

  • #3
    New Coder
    Join Date
    Nov 2002
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    To use Just-Asking's example:

    small-border {border: 1px solid #00ff00;} will give you a solid border, 1px wide and it should be colored lime green in browsers newer than Netscape 4.x .

    Neil


  •  

    Posting Permissions

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