Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Spider is grabbing style information

    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

  • #2
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Try validating that document. I think that will solve your problem.

    http://validator.w3.org/check?uri=ht...onwarterr.net/

    and add this above your <html> tag:

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

  • #3
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Also, type is a required attribute so it should look like this:

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

  • #4
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Its still showing up... Is there any way to write that code into my style sheet?

  • #5
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Is it still showing up if you put it in an external stylesheet and put it in the conditional comments like this:

    Code:
    <!--[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.

  • #6
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •