Solved

Firefox Gradient Repeating issue

Posted on 2013-01-06
6
365 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

809 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