Jump to content

Gradient problem


ultranova6600

Recommended Posts

Hi, I have a problem with my gradient background. I generated my gradient from ColorZillas website. The problem appears when I add DOCTYPE declaration in my HTML. This is what I'm talking about:vsgupe.png You can see a white space below. Basically my gradient background stops where my container div ends even though my gradient code is applied in body. When I exclude doctype declaration in html, gradient fills the whole page normally? What could be a problem?

Link to comment
Share on other sites

In standards complicant more, the <body> element extends only as far as the content.Rather than putting it on the <body> element try putting it on the <html> element. Perhaps another solution would be to set the height of the <body> and <html> elements to 100%

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...