English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a web page with a gradiant that goes from one color to another. Looks great on IE but terrible on firefox, since it has no gradient, just a white background.

How can I change the html to give firefox an alternate background?

2006-09-01 16:02:12 · 1 answers · asked by John K 5 in Computers & Internet Internet

1 answers

You can detect the browser using JavaScript and serve the HTML content (i.e. set the background) accordingly. See W3C Schools link for how to detect browsers using JavaScript:
http://www.w3schools.com/js/js_browser.asp

But this is not a very good approach, as some users have JavaScript disabled. Also, your app should look (mostly) consistent on all major browsers. It would be better if you can show us the HTML code and the gradient. We might figure out what the problem is and fix it for you.

2006-09-01 16:13:29 · answer #1 · answered by Utkarsh 6 · 1 0

fedest.com, questions and answers