Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adding dropshadow to content area

Posted on 2014-02-14
5
Medium Priority
?
237 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 54

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 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
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.…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

971 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