Solved

Adding dropshadow to content area

Posted on 2014-02-14
5
225 Views
Last Modified: 2014-02-15
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
0
Comment
Question by:Rowby Goren
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 9

Author Comment

by:Rowby Goren
ID: 39860816
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
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39860924
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
 
LVL 9

Author Comment

by:Rowby Goren
ID: 39861536
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
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39861576
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
 
LVL 9

Author Closing Comment

by:Rowby Goren
ID: 39861633
Thanks, Scott,

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

As always, I appreciate your expert help!

Rowby
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
Suggested Courses

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question