We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7045
    • 225 Posts
    One last validation issue, I swear grin I get ’Property opacity doesn’t exist : 0’ when I try to validate the CSS. This bit of code gets generated by the AjaxSearch as follows...
    <div id="ajaxSearch_output" style="opacity:0;"> </div>
    Is there a fix for this so I can validate.
      • 33372
      • 1,611 Posts
      Opacity is valid CSS3 but not CSS2, so it’s not really invalid code (just ahead of its time). You may be able to use AjaxSearch without opacity styles by substituting display:none and display:block, but I haven’t tried this myself.
        "Things are not what they appear to be; nor are they otherwise." - Buddha

        "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

        Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
        • 26435
        • 1,193 Posts
        Quote from: ZAP at Jul 30, 2007, 10:25 PM

        Opacity is valid CSS3 but not CSS2, so it’s not really invalid code (just ahead of its time). You may be able to use AjaxSearch without opacity styles by substituting display:none and display:block, but I haven’t tried this myself.
        Or "visibility: hidden;" and "visibility: visible;" if you need to preserve the spacing for layout.
        http://www.devx.com/tips/Tip/13638

        -sD-
        Dr. Scotty Delicious, Scientist
          Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
          All of the above... in no specific order.


          I send pointless little messages