html - box-shadow on bootstrap 3 container -


i'm building little website using bootstrap. base structure looks this:

<!doctype html> <html>   <head>     <link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/css/bootstrap.min.css" rel="stylesheet">     <style tpye="text/css">         .row {             height: 100px;             background-color: green;         }          .container {             margin-top: 50px;             box-shadow: 0 0 10px 10px black; /*this not work expected*/         }     </style>   </head>   <body>     <div class="container">         <div class="row">one</div>         <div class="row">two</div>         <div class="row">three</div>     </div>   </body> </html> 

see in action: http://jsfiddle.net/zdcjq/

now want whole site have dropshadow on 4 sides. problem is, bootstrap grid makes use of negative margins , makes rows overlap shadow.

is there way accomplish while leaving bootstrap functionality intact?

edit: expected result this: http://i.imgur.com/rpkudhc.png

edit: problem present until bootstrap 3 rc2. final bootstrap 3 makes workaround below obsolete.

http://jsfiddle.net/y93tx/2/

     @import url("http://netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/css/bootstrap.min.css");  .row {     height: 100px;     background-color: green; } .container {     margin-top: 50px;     box-shadow: 0 0 30px black;     padding:0 15px 0 15px; }        <div class="container">         <div class="row">one</div>         <div class="row">two</div>         <div class="row">three</div>     </div> </body> 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -