/    Sign up×
Community /Pin to ProfileBookmark

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;
[B]border-color: white;[/B]
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;
}[/CODE]

FireBug returns border-color: -moz-use-text-color; but I have no idea why.

Any ideas?

Thanks in advance.

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@bionoidJan 24.2012 — 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;
[COLOR="Red"]border-color: white;
border-style: solid;
border-width: 15px 2px 2px 2px;[/COLOR]
padding: 5px;
position: fixed;
right: 0px;
top: 0%;
width: 200px;
}[/CODE]
×

Success!

Help @leke spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...