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 7 of 7
  1. #1
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,182
    Thanks
    174
    Thanked 257 Times in 257 Posts

    Include Virtual="" problems with css

    Im not sure if it can happen, but can virtual include affect the css of that file? When its in IE7 & 6 some of my css wont work.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,919
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    Look at the output source code and see if there is something weird. Usually if you include a file like that the output source code will only show one single file. The CSS is then applied to that output.

  • #3
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,182
    Thanks
    174
    Thanked 257 Times in 257 Posts
    ok new development, apparently when you use the {include} on IE7 (its working in IE6 now) it will take this away from me...

    body {
    behavior:url(csshover.htc)
    }

    is there a way around this?

  • #4
    New Coder
    Join Date
    Oct 2007
    Posts
    49
    Thanks
    5
    Thanked 9 Times in 9 Posts
    IE7 might be stripping your tags because you are missing the quotes around the file name? That's the only thing that I can think of.

  • #5
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,182
    Thanks
    174
    Thanked 257 Times in 257 Posts
    well, i thought that might work but alas, no go. It works on every single browser but IE7, even IE6 works.... I dont get it, if anyone has any other reasons why please let me know. I will try anything.

  • #6
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,182
    Thanks
    174
    Thanked 257 Times in 257 Posts
    ok, incase anyone cares. In IE7 if you import or "include virtual" the file you are importing it into must have a <doctype> to it, i was using an existing html file that someone had created and for some reason they had no doctype at the top. Therefore it would not accept the incoming css from the document being imoprted. If you have no idea what i just said let me know

  • Users who have thanked jcdevelopment for this post:

    effpeetee (10-23-2007)

  • #7
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,919
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    You should always have a doctype at the top of your documents anyway…


  •  

    Posting Permissions

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