Twitter Bootstrap – add top space between rows

Editing or overriding the row in Twitter bootstrap is a bad idea, because this is a core part of the page scaffolding and you will need rows without a top margin. To solve this, instead create a new class “top-buffer” that adds the standard margin that you need. And then use it on the row … Read more

Fit background image to div

You can achieve this with the background-size property, which is now supported by most browsers. To scale the background image to fit inside the div: To scale the background image to cover the whole div: JSFiddle example There also exists a filter for IE 5.5+ support, as well as vendor prefixes for some older browsers.

CSS Box Shadow – Top and Bottom Only [duplicate]

As Kristian has pointed out, good control over z-values will often solve your problems. If that does not work you can take a look at CSS Box Shadow Bottom Only on using overflow hidden to hide excess shadow. I would also have in mind that the box-shadow property can accept a comma-separated list of shadows … Read more