Solved

Firefox Gradient Repeating issue

Posted on 2013-01-06
6
358 Views
Last Modified: 2013-01-15
I am using the following CSS3 for my <body> tag:

body
{
      
    width: 100%;
    height:100%;
    margin: "0";
    padding: "0";
            
    /* default background colour, for all layout engines that don't implement gradients */
    background: #ffffff;
    background-repeat: no-repeat;
    color: #000000; /* text colour (black) */
      
    filter: progid:DXImageTransform.Microsoft.Gradient (startColorstr='#005595', endColorstr='#dddedf', gradientType='0'); /* IE based browsers */
    background: -moz-linear-gradient(top, #006595, #dddedf); /* Mozilla (Firefox) based browsers */
    background: -webkit-gradient(linear, left top, left bottom, from(#006595), to(#dddedf)); /* webkit based browsers */

    FONT-WEIGHT: normal;
    FONT-SIZE: 9pt;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
      
}

IE works fine, but the background repeats when I scroll in Firefox. I can't figure out how to make it not do that. Please help.

Thanks in advance!
0
Comment
Question by:LandyJ
  • 4
  • 2
6 Comments
 
LVL 30

Expert Comment

by:IanTh
ID: 38748443
0
 
LVL 7

Author Comment

by:LandyJ
ID: 38748506
Thanks for the reply, but that's the code I'm using. In IE, the background stays static, as expected, but in Firefox, when I scroll, the background scrolls also. I apologize for not posting an image of the issue with the original post. Please see the attached image for a clearer picture of what is happening.

Thanks.
FFscrollissue.jpg
0
 
LVL 30

Expert Comment

by:IanTh
ID: 38748525
what version of firefox as it says for 3.7

you code does seem to be missing some parameters that are on the code on the url
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 7

Author Comment

by:LandyJ
ID: 38748659
Firefox version, latest and greatest: v17.0.1.

As for the code, if I am looking at the wrong line, I apologize, but:
(their code)
background: -moz-linear-gradient(top,  #ccc,  #000);

(my code)
background: -moz-linear-gradient(top, #006595, #dddedf);

I appreciate your help...
0
 
LVL 7

Accepted Solution

by:
LandyJ earned 0 total points
ID: 38765216
I have opened another question with a better example and description of this issue, so I'm closing this one.

The new question is at: http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/CSS/Q_27991758.html
0
 
LVL 7

Author Closing Comment

by:LandyJ
ID: 38777601
I have opened another question with a better example and description of this issue, so I'm closing this one.

The new question is at: http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/CSS/Q_27991758.html
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now