WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Box shadow problem on Mon Jan 31, 2011 10:04 pm

Matti


Registered Member
Registered Member
Hi, guys

When I use box shadow inset that works but when I use them both they doesn't work can any one tell me how to fix this...

#wrap {
-moz-box-shadow:inset 0px 5px 10px #626364;
-webkit-box-shadow:inset 0px 5px 10px #626364;
box-shadow:inset 0px 5px 10px #626364;
}

This is for the background shadow but it doesn't work only the inset shadow work.
#wrap {
-moz-box-shadow: 0px 5px 10px #626364;
-webkit-box-shadow: 0px 5px 10px #626364;
box-shadow: 0px 5px 10px #626364;
}

2 Re: Box shadow problem on Tue Feb 01, 2011 1:21 am

Kryptonian


Registered Member
Registered Member
Outset box shadow? Razz


Inset box shadow? Razz


The CSS you have isn't incorrectly placed or anything. Its likely that its something else to do with other CSS you have, or your browser... Razz (I'm likely to believe that its other CSS?)

http://www.scryptonite.com/

3 Re: Box shadow problem on Tue Feb 01, 2011 1:46 am

Guest


Guest
I think he's trying to do both simultaneously, like this:

Inset/outset box shadow? Razz


He must combine the box-shadow rules into a single rule, as follows:

Code:
#wrap {
-moz-box-shadow:0px 5px 10px #626364,inset 0px 5px 10px #626364;
-webkit-box-shadow:0px 5px 10px #626364,inset 0px 5px 10px #626364;
box-shadow:0px 5px 10px #626364,inset 0px 5px 10px #626364;
}


4 Re: Box shadow problem on Tue Feb 01, 2011 2:21 am

Kryptonian


Registered Member
Registered Member
@Dion good thinking. Hooray for multiple shadows. Razz
Spoiler:
Code:
-webkit-box-shadow: 0px  0px  0px  1px  #AAA,
                    1px  1px  0px  1px  #AAA,
                    2px  2px  0px  1px  #AAA,
                    3px  3px  0px  1px  #AAA,
                    1px -3px 15px  0px  #BBB;
-moz-box-shadow:    0px  0px  0px  1px  #AAA,
                    1px  1px  0px  1px  #AAA,
                    2px  2px  0px  1px  #AAA,
                    3px  3px  0px  1px  #AAA,
                    1px -3px 15px  0px  #BBB;
box-shadow:          0px  0px  0px  1px  #AAA,
                    1px  1px  0px  1px  #AAA,
                    2px  2px  0px  1px  #AAA,
                    3px  3px  0px  1px  #AAA,
                    1px -3px 15px  0px  #BBB;

http://www.scryptonite.com/

5 Re: Box shadow problem on Tue Feb 01, 2011 2:59 am

Emilio


Registered Member
Registered Member
Haha , You guys make me laugh
You guys make it look so easy Smile

http://www.graphilicious.forumotion.Com

6 Re: Box shadow problem on Tue Feb 01, 2011 4:35 am

Guest


Guest
Emilio wrote:You guys make it look so easy Smile

Krypt has come a long way in the past year...but then again, he learned from "studying" my code, so the result was inevitable. Very Happy

7 Re: Box shadow problem on Tue Feb 01, 2011 5:30 am

RecAgenda


WebArtz NewsReporter
WebArtz NewsReporter
Now, now children. Rolling Eyes

http://www.recagenda.wordpress.com

8 Re: Box shadow problem on Tue Feb 01, 2011 8:44 am

Kryptonian


Registered Member
Registered Member
@RecAgenda Razz

@Dion Popcorn

http://www.scryptonite.com/

9 Re: Box shadow problem on Tue Feb 01, 2011 9:22 am

Russel


WebArtz Moderator
WebArtz Moderator
May i remind you guys to please avoid being off topic. All posts must be constructive in nature.


_________________





No Support Via PM
http://facebook.com/russelpuge

10 Re: Box shadow problem on Tue Feb 01, 2011 2:51 pm

Matti


Registered Member
Registered Member
dion wrote:I think he's trying to do both simultaneously, like this:

Inset/outset box shadow? Razz


He must combine the box-shadow rules into a single rule, as follows:

Code:
#wrap {
-moz-box-shadow:0px 5px 10px #626364,inset 0px 5px 10px #626364;
-webkit-box-shadow:0px 5px 10px #626364,inset 0px 5px 10px #626364;
box-shadow:0px 5px 10px #626364,inset 0px 5px 10px #626364;
}




Thank you Dion, much I appreciate your help. Very Happy

11 Re: Box shadow problem on Tue Feb 01, 2011 5:05 pm

Jophy


Registered Member
Registered Member
Solved => Locked

http://www.socialtechforum.com/

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum