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 2 of 2
  1. #1
    Banned
    Join Date
    Feb 2011
    Posts
    21
    Thanks
    4
    Thanked 0 Times in 0 Posts

    css opaque border

    http://4.bp.blogspot.com/_v5h8enSm2i...ans-border.png

    I need something like this that will have a rounded border that is gray and slightly opaque.

    could i have some sample code please? thanks

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,677
    Thanks
    6
    Thanked 1,008 Times in 981 Posts
    Code:
    #idSelector {
      border: 10px solid;
      border-color: #CCC;
      border-color: rgba(0,0,0,.3);
      -moz-border-radius: 10px;
      border-radius: 10px;
    }
    Won’t work in IE, though. However, as this is a purely cosmetic issue I would just let IE degrade gracefully. Users of that browser wouldn’t even know that the borders are supposed to be rounded and transparent so they wouldn’t miss it anyway.


  •  

    Posting Permissions

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