ultranova6600 Posted November 5, 2012 Share Posted November 5, 2012 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: 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 More sharing options...
Ingolme Posted November 5, 2012 Share Posted November 5, 2012 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% 1 Link to comment Share on other sites More sharing options...
ultranova6600 Posted November 5, 2012 Author Share Posted November 5, 2012 Thanks, setting body and html height to 100% worked. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now