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 4 of 4
  1. #1
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    why border : 0 4px double #000; not working

    I want this
    border-top : 0;
    border-left : 4px double #000;
    border-right : 4px double #000;
    border-bottom : 0;

    I have succeeded slightly differently before with,
    border : 2px solid #000; but that gives a border all the way around.
    How do I get a border on only, the left and right with the smallest anount of CSS?

    Bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    I usually declare everything but the width, then the width, like so:
    Code:
    whatever {
     border: double #000;
     border-width: 0 4px;
     }

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Shorthand

    There are a couple of options, but the following two properties ought to work nicely:
    Code:
    border: 4px #000;
    border-style: none double;
    the first sets all borders to 4px black, but no style; the second adds the style for top and bottom to none (no border) and double for left and right.
    Last edited by ronaldb66; 03-08-2005 at 03:04 PM. Reason: Typo...
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #4
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    great thanks

    That's great guys thanks.

    Bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

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