jessmess Posted March 4, 2012 Share Posted March 4, 2012 Hey Everyone, I'm having an issue on one of my sites where the footer background is not showing up on certain pages: http://www.jerseycookiegirl.com/summer.shtml and http://www.jerseycookiegirl.com/order_form.shtml The background is supposed to be white, like on the other pages, but I don't understand why it's not working on only certain pages... Any help would be greatly appreciated!! ~Jess style.css Link to comment Share on other sites More sharing options...
thescientist Posted March 4, 2012 Share Posted March 4, 2012 I can tell that you have a lot of validation issues, in particular <link> tags for stylesheets that aren't were they belong (in between the <head> tags) as well as mismatching opening and closing tags for divs and lists. validate your HTML.http://validator.w3.org/ Link to comment Share on other sites More sharing options...
jessmess Posted March 4, 2012 Author Share Posted March 4, 2012 Would putting <link> tags where they don't belong cause the problem I'm having? I still don't understand why it would happen on some pages and not others... Link to comment Share on other sites More sharing options...
thescientist Posted March 4, 2012 Share Posted March 4, 2012 can't help. plus I pointed out you had mismatched opening and closing tags. You can't predict how a browser will try and fix your page when you have it broken. So why not just do the simple fixes to get it validated (which you should be doing anyway) and take it from there? At least then you will know it's not the browser misinterpreting your broken HTML. edit: also, you should really be using a strict DTD. Link to comment Share on other sites More sharing options...
thescientist Posted March 4, 2012 Share Posted March 4, 2012 anyway, after looking at it with developer tools, and like I pointed out, this maybe due to the tag mismatch but, for example, the page herehttp://www.jerseycookiegirl.com/order_form.shtmlthe Footer is not in ContentWrapper the way it is herehttp://www.jerseycookiegirl.com/ Link to comment Share on other sites More sharing options...
jessmess Posted March 4, 2012 Author Share Posted March 4, 2012 When I look at them both instances of the footer are outside the content wrapper. I am definitely aware that I need to validate my pages…my code needs a lot of cleaning up for sure. Thanks Link to comment Share on other sites More sharing options...
thescientist Posted March 4, 2012 Share Posted March 4, 2012 When I look at them both instances of the footer are outside the content wrapper. well, I was looking at them through Chrome developer tools and it shows as how I described. Either way, you could just simply give the footer the white background like ContentWrapper does. Thats why it does or doesn't have the white background too. When it's in ContentWrapper, the white background shows for Footer. When it's not in ContentWrapper, it shows no background because it has none of it's own styled to it. Link to comment Share on other sites More sharing options...
jessmess Posted March 4, 2012 Author Share Posted March 4, 2012 Okay. Thank you for your help, I appreciate it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.