Hello everyone,

 

I have the css code for shadow effect and rounded corners for body area of my community

 

#xg_body {
border:3px outset #666666; border-style:double;
    -moz-border-radius: 15px;
    -moz-box-shadow: 1px 1px 15px #000;
    -webkit-box-shadow: 1px 1px 15px #000;
        box-shadow: 1px 1px 15px #000;

}

 

BUT it only shows in Firefox and not IE. Is there a better code i can use that shows in both browsers? After all many ppl still use IE

Views: 153

Replies to This Discussion

Unfortunately, like you mentioned, this shadow will not work in IE. The other way is by using a shadow image. But, each case is unique. It depends on the width of the module.

Best,

Jen

oh man :( its not for the modules just for the entire body part

 

thank you :)

I understand. And the safest bet is to create a custom image/shadow.

However, I do have this little bit of code that you may be able to tweak. It will work differently in different browsers:

#xg_body {
    -moz-box-shadow: 3px 3px 14px #000;
    -webkit-box-shadow: 3px 3px 4px #000;
    box-shadow: 3px 3px 4px #000;
    /* For IE 8 */
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";
    /* For IE 5.5 - 7 */
    filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');
}

oh I see I just added your code and the shadow is currently only on the right side of the body part. Was it meant to be like that? I dont see an option to change it so that left and top are showing the shadow too in IE

in any way thank you so much though!!!!

RSS

Members

© 2024   Created by JenSocial.   Powered by

Badges  |  Report an Issue  |  Terms of Service

Home
VIP Ning Tips