Announcement

Collapse
No announcement yet.

Actinic removing my CSS hacks - help required

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Actinic removing my CSS hacks - help required

    Hi - I want to include the following CCS hack in the header of my pages:

    <!--[if IE 6]>
    <style type="text/css">
    #container {
    height: 100%;
    }
    </style>
    <![endif]-->
    Because I have "Compact html/cgi" selected, Actinic appears to treat this as a comment and removes it.

    If I remove the comments the text is displayed in non-IE6 browsers.

    Is there a way I can get this to load up in my Actinic pages to work as required?
    Regards
    David

    #2
    There are various solutions available to hide CSS from legacy browsers ... see http://www.ericmeyeroncss.com/bonus/trick-hide.html amongst others


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      Of course - thanks for that.
      Regards
      David

      Comment


        #4
        Originally posted by jont
        There are various solutions available to hide CSS from legacy browsers ... see http://www.ericmeyeroncss.com/bonus/trick-hide.html amongst others
        Was that the book that Santa brought Jonty? Looks good.

        Comment


          #5
          Santa kindly brought PHP (and a MYSQL) book as I had no real knowledge of either .. Ulysees is looking preferable at the moment


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment


            #6
            if you really want to include the code, then you must prevent actinic thinking that its a comment
            try including this bit of code at the top of your pages - it will still work and WILL get through the compact html
            Code:
            		<script language="javascript">
            			document.write("\<\!--\[if IE\]\>");
            			document.write("\<\!\[endif\]\-\-\>");
            		</script>
            looks strange, but it works.

            Comment


              #7
              Hi Kevin - I need to include the following inside the javascript that you have specified but I can't get it to work. I've tried using escape characters in just about every position but without any luck.

              <link rel="stylesheet" href="cyan_ie_6_hack.css" media="screen" />
              Regards
              David

              Comment


                #8
                would this not work

                Code:
                <script language="javascript">
                	document.write("\<\!--\[if IE\]\>");
                </script>
                <link rel="stylesheet" href="cyan_ie_6_hack.css" media="screen" />
                <script language="javascript">
                	document.write("\<\!\[endif\]\-\-\>");
                </script>
                I am relativly new to javascript but i think that should create

                Code:
                <!--[if IE]>
                <link rel="stylesheet" href="cyan_ie_6_hack.css" media="screen" />
                <![endif]-->
                In the finished HTML

                AndrewPK
                www.incredibid.co.uk

                Comment


                  #9
                  Try it and see. Put it in the BODY and use some plain text instead of the <link ...> line and see what happens.

                  I think this fails in Firefox.

                  There are other posts on Conditional HTML that may help.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment

                  Working...
                  X