www.webdeveloper.com
Results 1 to 2 of 2

Thread: border-color: shows color: properties

  1. #1
    Join Date
    Mar 2010
    Location
    Finland
    Posts
    84

    border-color: shows color: properties

    Hi, I'm trying to set a border-color in css, but it's not working as expected. The following returns border-color as black. If I change color to something like blue, the text and border-color is blue
    Code:
    #pollLanguage {
    text-align: left;
    font-family: sans-serif;
    border-color: white;
    color: black;
    background: lightgrey;
    border-width: medium;
    border-top: 15px solid;
    border-bottom: 2px solid;
    border-right: 2px solid;
    border-left: 2px solid;
    padding: 5px;
    position: fixed;
    right: 0px;
    top: 0%;
    width: 200px;
    }
    FireBug returns border-color: -moz-use-text-color; but I have no idea why.

    Any ideas?

    Thanks in advance.

  2. #2
    Join Date
    Dec 2011
    Location
    Centurion, South Africa
    Posts
    792
    Specifying border-top, border-left etc was defaulting it back to black.

    Try something like this:

    Code:
    #pollLanguage {
    text-align: left;
    font-family: sans-serif;
    color: black;
    background: lightgrey;
    border-color: white;
    border-style: solid;
    border-width: 15px 2px 2px 2px;
    padding: 5px;
    position: fixed;
    right: 0px;
    top: 0%;
    width: 200px;
    }
    JavaScript: Learn | Validate | Compact | bionoid

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles