How To Create Drop Shadows on Any Object With CSS

Now using a few CSS3 rules we can cast shadows off block-level elements (like divs).

Here’s a sample code that does that just for you. This was culled from a post on CSS Tricks.

.shadow {

-moz-box-shadow: 3px 3px 5px 6px #ccc;

-webkit-box-shadow: 3px 3px 5px 6px #ccc;

box-shadow: 3px 3px 5px 6px #ccc;


The horizontal offset of the shadow, positive means the shadow will be on the right of the box, a negative offset will put the shadow on the left of the box.

The vertical offset of the shadow, a negative one means the box-shadow will be above the box, a positive one means the shadow will be below the box.

The blur radius (optional), if set to 0 the shadow will be sharp, the higher the number, the more blurred it will be.

The spread radius (optional), positive values increase the size of the shadow, negative values decrease the size. Default is 0 (the shadow is same size as blur).



Inner Shadow

.shadow {

-moz-box-shadow: inset 0 0 10px #000000;

-webkit-box-shadow: inset 0 0 10px #000000;

box-shadow: inset 0 0 10px #000000;



Internet Explorer Box Shadow

You need extra elements…

Box-shadowed element

.shadow1 {

margin: 40px;

background-color: rgb(68,68,68); /* Needed for IEs */

-moz-box-shadow: 5px 5px 5px rgba(68,68,68,0.6);

-webkit-box-shadow: 5px 5px 5px rgba(68,68,68,0.6);

box-shadow: 5px 5px 5px rgba(68,68,68,0.6);

filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30);

-ms-filter: "progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30)";

zoom: 1;


.shadow1 .content {

position: relative; /* This protects the inner element from being blurred */

padding: 100px;

background-color: #DDD;


One-Side Only

Using a negative spread radius, you can get squeeze in a box shadow and only push it off one edge of a box.

.one-edge-shadow {

-webkit-box-shadow: 0 8px 6px -6px black;

-moz-box-shadow: 0 8px 6px -6px black;

box-shadow: 0 8px 6px -6px black;


I particularly found the one-sided drop shadow very interesting as this meant I could create multiple shadows on different sides of an object with CSS.

via CSS-Tricks

Places to Get Quality and Free Education Online

Here I would be tracking a list of quality online education websites. I would only list those with a sound backing from top grade higher institutions worldwide.

Also, the platform for learning has to be well structured for people to easily learn from:

So here goes the list:

  1. Coursera –
  2. EDx –
  3. Udacity –
  4. Udemy –
  5. Khan Academy –

And this list will be updated as they come.

updated 14 September, 2013.

Building and Bootstraping a Software Company from Scratch

I have had some time working and building my own company. Short to say it has been the most interesting and also most precarious time I have ever had. Celebrate your successes, you’ll likely not remember them in dark times, so make a memory for them while they are within view.

Starting out early 2011 I had a few worries that got me struggling in my mind as to how to “just do it”.

Here is an excerpt from a couple of guys who did it without looking for huge loans and venture capital for their “brilliant” software company / idea.

“One of the great advantages as a software company is that you have a product that has a price tag. From the first days of forming the company, we would get in our cars, put our laptops in the backseat, and drive around trying to sell our idea.”Tableau’s founders were upfront when sharing their prototypes with potential clients, disclosing that the product hadn’t been tested, was missing a few basic features, and didn’t come in a shiny box. “But it did a few magical things that could really help someone,” says Chabot.

Today, I still have some of those fears that keep me from taking a bold dive into the deep blue sea of business. But that’s going to change in a few weeks as long as I consciously and diligently manage myself (not my time) with the will to “JUST DO IT”.

via Forbes.