By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,688 Members | 1,770 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,688 IT Pros & Developers. It's quick & easy.

Background Gradient using webkit

KeredDrahcir
100+
P: 426
I'm trying the use a background graident on my menu bar. I'm using:
Expand|Select|Wrap|Line Numbers
  1. .mainmenu{
  2.     background-color: #25abec;
  3.     background-image:-moz-linear-gradient(top,#25abec,#1984b8);
  4.     background-image:-webkit-gradient(linear,left top,left bottom,from(#25abec),to(#1984b8));
  5.     filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr=#25abec,endColorStr=#1984b8);    
  6. }
The error console of Firefox picks up on the last two lines. The webkit one and the filter one. Can anyone tell me what I'm doing wrong please?
Apr 30 '12 #1

✓ answered by Rabbit

The last two lines are just meant for other browsers. Firefox doesn't recognize them, other browsers do.

Share this Question
Share on Google+
7 Replies


Rabbit
Expert Mod 10K+
P: 12,430
The last two lines are just meant for other browsers. Firefox doesn't recognize them, other browsers do.
Apr 30 '12 #2

KeredDrahcir
100+
P: 426
How do I get round the error console saying there is a problem there in that case. I do nee to page to comptible across the five main browsers.
Apr 30 '12 #3

Rabbit
Expert Mod 10K+
P: 12,430
That I don't know. Just ignore them.
Apr 30 '12 #4

KeredDrahcir
100+
P: 426
Would the same apply for zoom and behavior?
Apr 30 '12 #5

KeredDrahcir
100+
P: 426
I assume I'm better off validating the code rather than looking at the error console.
May 4 '12 #6

Rabbit
Expert Mod 10K+
P: 12,430
I don't know about zoom and behavior, but if it's browser specific, then it will throw errors in the other browsers. I wouldn't ignore the error console, just be aware of which errors are related to work arounds for other browsers.
May 4 '12 #7

KeredDrahcir
100+
P: 426
Thanks. That's what I thought.
May 8 '12 #8

Post your reply

Sign in to post your reply or Sign up for a free account.