Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS Firefox box-shadow and outline

Tags:

css

firefox

I've added both outline and box-shadow to a div in my CSS code.
The div looks great on Chrome and IE but not in Firefox:
Chrome and IE: http://i.phirune.com/csrjfyqoczob

FireFox: http://i.phirune.com/4gsrrub3ww6e

The CSS code is as follows:

#container {
width:960px;
margin:0px;
padding:0px;
margin-left:auto;
margin-right:auto;
margin-top:-10px;
background-color: #415475;
-moz-box-shadow: 0 0 25px 25px rgba(0,0,0,0.2);
-webkit-box-shadow: 0 0 25px 25px rgba(0,0,0,0.2);
box-shadow: 0 0 25px 25px rgba(0,0,0,0.2);
outline:#000000 solid thick;
}

I have no idea how to fix this, any insight will be appreciated.

like image 970
PhiRune Avatar asked Dec 29 '12 20:12

PhiRune


2 Answers

Why not use multiple box-shadows? Just separate your box-shadows by commas.

box-shadow:
    0px 0px 0px 1px #fff,
    0px 0px 0px 2px #606054,
    0px -1px 9px 1px rgba(119, 119, 119, 0.4);

You can add as many has your heart desires.

like image 103
Brian Fegter Avatar answered Sep 29 '22 15:09

Brian Fegter


This is a Firefox bug. You can only get around it. The ticket is still live, you may see at: https://bugzilla.mozilla.org/show_bug.cgi?id=480888

like image 22
Rick Mak Avatar answered Sep 29 '22 15:09

Rick Mak