Jump to content

Site content not visible


Steve_Kinsella

Recommended Posts

have you tried any sort of validation? I'd be pretty scared with those numbers...it could also be that you don't close the IE conditional.

Link to comment
Share on other sites

http://www.google.com/#hl=en&source=hp...059ab474882bfe2Google is your friend. First link should help. Regardless, its still in your best interest to have a page without 300+ errors.
Link to comment
Share on other sites

I have this site - www.stevenkinsella.com - and whilst it works ok in both Firefox and Opera, IE, Safari and Chrome will not show the content. The page loads and the source can be viewed, but the page appears blank.Any offers as to why?
Did you close the if condition?dink
Link to comment
Share on other sites

After several goes, the current www.stevenkinsella.com is allegedly now 100% valid - http://validator.w3.org/check?uri=http%3A%...venkinsella.com. But it still won't display in IE, Safari or Chrome. All that shows up is //]]>, which I'm guessing has something to do with the end of the html looking like this</body></html>//]]></script></head><body></body></html>Any ideas to get this 100% valid page working?

Link to comment
Share on other sites

The <![CDATA[ ... ]]> block specifies textual data - any markup you place inside it will be rendered literally and not parsed. Currently, that's your entire document, including the <body> tag. So your entire document is basically:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB"> <head> <meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org" /> <title>They know what you did.</title> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="description" content="Steven Kinsella's writing for your pleasure." /> <meta name="keywords" content="Kinsella. Micro Bionic. Chronology. Crisis on Earth Prime." /> <meta name="robots" content="index, follow" /> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="site.css" /> <script type="text/javascript">//<![CDATA[Lots and lots of text here that won't be displayed anyway because it's within a script tag.//]]></script></head><body></body></html>

So... tag out the CDATA declaration. Unfortunately, since you haven't validated your actual page (you've told the validator to ignore everything), you'll probably find a lot more problems. Validation isn't everything!

Link to comment
Share on other sites

After several goes, the current www.stevenkinsella.com is allegedly now 100% valid - http://validator.w3.org/check?uri=http%3A%...venkinsella.com. But it still won't display in IE, Safari or Chrome. All that shows up is //]]>, which I'm guessing has something to do with the end of the html looking like this</body></html>//]]></script></head><body></body></html>Any ideas to get this 100% valid page working?
You need to close the conditional if statement did you visit the url for answers?Conditional If<!--[if IE 6]>Special instructions for IE 6 here<![endif]-->
Link to comment
Share on other sites

http://www.google.com/#hl=en&source=hp...059ab474882bfe2Google is your friend. First link should help. Regardless, its still in your best interest to have a page without 300+ errors.
right in the first link :)
<![endif]-->

obviously changed to match the browser for your situation. and goes after the end of the code that's part of the conditional.

Link to comment
Share on other sites

Well the validation is down to only 147 errors, which is an improvement. And the site is now visible in all the browsers. I know it's not perfect, but every time I try to correct it, I break it again. It's working so I'll leave it for the time being.Thanks all for your help.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...