Solved

Adding dropshadow to content area

Posted on 2014-02-14
5
210 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
spacing 5 56
How do i set sidebar width to 45% of screen width 1 28
Change color of modular 8 20
How to change pointer icon to hand icon on mouseover 2 17
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

932 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

16 Experts available now in Live!

Get 1:1 Help Now