...

View Full Version : Spider is grabbing style information



alconebay
07-02-2007, 04:21 PM
When I use seochats's spider simulator it picks up the following style information from my page header and reads it as content:

menuwrapper p7menubar ul a height 1 a active width auto

It's getting that code from my style comments in the header of my home page. This is the code:

<!--[if lte IE 7]>
<style>
#menuwrapper, #p7menubar ul a {height: 1%;}
a:active {width: auto;}
</style>
<![endif]-->

I have been trying to write that code into my css but it hasent been working. I keep losing my drop down menu in IE7 when I move it into the style sheet. Can that type of exception code be written into a style sheet? Maybe I'm just writing it wrong? Thanks for any help.

Spider Simulator: http://www.seochat.com/seo-tools/spider-simulator/
My Page: http://www.vonwarterr.net

Jutlander
07-02-2007, 04:24 PM
Try validating that document. I think that will solve your problem.

http://validator.w3.org/check?uri=http://www.vonwarterr.net/

and add this above your <html> tag:


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Jutlander
07-02-2007, 04:29 PM
Also, type is a required attribute so it should look like this:


<!--[if lte IE 7]>
<style type="text/css">
#menuwrapper, #p7menubar ul a {height: 1%;}
a:active {width: auto;}
</style>
<![endif]-->

alconebay
07-02-2007, 04:47 PM
Its still showing up... Is there any way to write that code into my style sheet?

Jutlander
07-02-2007, 04:55 PM
Is it still showing up if you put it in an external stylesheet and put it in the conditional comments like this:



<!--[if lte IE 7]>
<link href="ie.css" rel="stylesheet" type="text/css" />
<![endif]-->


I still suggest you validate it though. It's only 10 errors last I checked.

alconebay
07-02-2007, 05:25 PM
That worked! Thanks a lot. I was trying to put the conditional comments within my current style sheet. I guess I have to seperate them (???) But the spider simulator is reading the page correctly now. BTW, I also passed the verification. Thanks Jutlander!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum