Background shadow possible?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Nov 18, 2012 5:16 pm
Reply with quote
Report this post
I would like to have know if it is possible to have a small shadow around the whole "block" of the site.

Please have a look at the image attached for better understanding. :?:
User avatar
Gold Boarder

GK User
Sun Nov 18, 2012 5:34 pm
Reply with quote
Report this post
Hi,

The only problem will be with fact that the bottom and footer are a separated blocks, but you can try to use the following CSS code:

Code: Select all
#gkPage {
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
      -ms-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
User avatar
Administrator

GK User
Sun Nov 18, 2012 5:49 pm
Reply with quote
Report this post
Great I will try!
Please specify which CSS file I should add this code to.
User avatar
Gold Boarder

GK User
Sun Nov 18, 2012 5:55 pm
Reply with quote
Report this post
You can do it on the template.css file at the end.
User avatar
Administrator

GK User
Sun Nov 18, 2012 6:08 pm
Reply with quote
Report this post
Thanks. This works fine. However, the background shadow is not visible using IE.

As IE still is a major browser ... could you please comment on why it is like this ... or maybe you have a solution.
User avatar
Gold Boarder

GK User
Sun Nov 18, 2012 6:37 pm
Reply with quote
Report this post
Sorry but IE <= 8 doesn't support box-shadow but IE9 should support it. In the older IEs you can try to use the dropShadow filter as it was described here: http://robertnyman.com/2010/03/16/drop- ... -browsers/
User avatar
Administrator


cron