Solved

Adding dropshadow to content area

Posted on 2014-02-14
5
208 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
  • 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 52

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 52

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now