473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Background Gradient using webkit

KeredDrahcir
426 256MB
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.

7 2320
Rabbit
12,516 Expert Mod 8TB
The last two lines are just meant for other browsers. Firefox doesn't recognize them, other browsers do.
Apr 30 '12 #2
KeredDrahcir
426 256MB
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
12,516 Expert Mod 8TB
That I don't know. Just ignore them.
Apr 30 '12 #4
KeredDrahcir
426 256MB
Would the same apply for zoom and behavior?
Apr 30 '12 #5
KeredDrahcir
426 256MB
I assume I'm better off validating the code rather than looking at the error console.
May 4 '12 #6
Rabbit
12,516 Expert Mod 8TB
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
426 256MB
Thanks. That's what I thought.
May 8 '12 #8

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

Similar topics

2
by: V | last post by:
Does anyone know how to create a color gradient for the body background or table background (or maybe even TD background)? Is this even possible in HTML? Thanks.
2
by: moondaddy | last post by:
How do I make a background gradient diagonal instead of just horizontal or vertical? This makes the standard horizontal gradient. progid:dximagetransform.microsoft.gradient(gradienttype=1,...
10
by: TF | last post by:
Very newbie question and I hope this is the right group. I have a table on a web page which contains info about paint colors. One column contains the hex value for the color's RGB value. I want...
1
by: DennisDoane | last post by:
I can't seem to find a way to change the background color of each tab in the SSTab control. How do you do this?
2
Death Slaught
by: Death Slaught | last post by:
what would you do to write a function that changes the background color if the if statement is true?i tried these no luck i dont really have a clue what ide use for it. <script...
2
by: kasem | last post by:
Hi... I need to change the background color of my webpage using xml file,so I can create an admin page where i give the admin options of different colors just by pressing a button....Do I have to...
5
by: moondaddy | last post by:
I have a custom control where users can set the backcolor of one of it's UI elements via a DP I created. One of the colors they can pick is a brush called CustomGradient where I would set the DP...
3
by: RobG | last post by:
According to AppleInsider, Steve Ballmer is not averse to the idea: 'Addressing a developer conference in Sydney Australia, Microsoft CEO Steve Ballmer said the idea of using WebKit as the...
1
by: vindu | last post by:
hi guys i have got a problem in designing my web pages....... That the for example background-image:url('sun.jpeg'); is not working Can any one help me finding out solution for this....and give...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.