Need help? Check out our Support site, then


custom CSS upgrade strips out ceartain CSS rules?

  1. I'm trying to change the opacity of an element, using the following

    #element
    {
       filter:alpha(opacity=50);
      -moz-opacity:0.5;
      -khtml-opacity: 0.5;
      opacity: 0.5;
    }

    wordpress filters out these rules, they do not show up in the stylesheet on my blog. is this a security measure or a bug? are there any workarounds?

    thanks

  2. I'm out on the Custom CSS Forum searching for almost the exact (I think) same answer, only I do NOT have the CSS upgrade and am trying to apply opacity to a background image in a Text Widget. My original thought was maybe there are some rules that are only "active" with the CSS upgrade...but maybe not if you have the upgrade and are having the same issue. If you don't mind, I'll piggy-back my issue example here as well:

    <!--
    <div style="width:150px;height:75px;background:url('http://metymepatterns.files.wordpress.com/2008/03/klematis2.jpg');">
    <div style="width:100px;height:50px;background-color:#ffffff;filter:alpha(opacity=60); opacity:0.6; margin:20px;">
    <p style="font-weight:bold;color:#000000;" align="center">Testing</p>
    </div>
    </div>
    --!>

    Both references to opacity in the code disappear everytime I save the widget. As bekini asked - is this perhaps a bug? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic