Adding dropshadow to content area

Hello

I am working on a site where I want to add drop shadows around certain areas including the main content area.

In my follow up comment I'll include the link to my test site, and an example of the kind of drop shadow I want to duplicate.

I would like it to be compatible with all modern browsers,  I guess there is no hope for IE8.

Thanks!

rowby
LVL 9
Rowby GorenAsked:
Who is Participating?
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Actually, just change it without the prefix. I tested on firefox, chrome and ie

box-shadow:-3px 5px 30px #999;  
position: relative;

Open in new window

0
 
Rowby GorenAuthor Commented:
Hi

Here's the development website, early stages of development.  

http://rowbytesting.com/

Here's the dropshadow I want to recreate:

http://www.dreamworksstudios.com/news/brie-larson-to-star-in-dreamworks-the-good-luck-of-right-now

Interestingly, on Firefox you can not see the dropshadow on the dreamworks content area.  However in Chrome the dropshaadows are clearly visible.  

I want the dropshadow on rowbytesting.com to be visible in "all" modern browsers, including firefox.  (BTW client has Macs -- so It needs to work on Mac browsers, for sure!)

On rowbytesting, the div that needs the dropshadow is uk-article tm-article

This site uses the Warp framework, and one interesting thing is the div that controls uk-article tm-article is called article class=".....   Not sure how that would be referenced in the style sheet.  But I am sure you CSS Experts will show me how to do that.  "article" I guess is something that warp uses in addition to more standard css thingies.

Thanks!

Rowby
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
There already is a shadow around the main divs.

Looking at theme.css line 7060

.tm-grid-block, .tm-block-bottom, .uk-article, .tm-content-boxed .tm-content, .tm-middle > [class*='tm-sidebar-'] > .uk-panel {
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(0, 0, 0, 0.06);
}

Open in new window


If you want the shadow to be darker, play with changing the .06 (transparency) to a higher number.

If you want to add a shadow to more classes, just add to this list separated by a comma.
0
 
Rowby GorenAuthor Commented:
Hi Scott,

I copied the css from the other site to my testing site and the shadow looks excellent in Chrome, but disappears in Firefox.  Is there anything I can add to the css, to get it to look the same in Firefox -- and other modern browsers...?

.tm-grid-block, .tm-block-bottom, .uk-article, .tm-content-boxed .tm-content, .tm-middle > [class*="tm-sidebar-"] > .uk-panel {
-moz-box-shadow: -3px 5px 30px #999;
-webkit-box-shadow: -3px 5px 30px #999;
position: relative;
}

I see this link which may or may not have anything to do with this issue.  Chrome frame
Thanks!
0
 
Rowby GorenAuthor Commented:
Thanks, Scott,

Just checked your fix, going back to IE8 and Mac browsers -- looks great!

As always, I appreciate your expert help!

Rowby
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.