Sunday, January 31, 2010

Get a hand made chopper :) - v2manufacture.com

My sister's friend creates motorcycles! Isn't that an awesome thing to do? Of course I accepted when he asked me to create a simple website for him, see the result here: v2manufacture.com.

It's really simple, so I used SimpleViewer again ;)

Edited: we finally decided to use a Javascript picture gallery instead (see more information about this in my blog post called New website 'in the house': widosub.com & v2manufacture.com updated.

Friday, January 22, 2010

z-index only with absolute position - a one liner

A one liner can be very useful sometimes, so just read the title, hope it helps! ;)

Thursday, January 14, 2010

Center div with margin: 0 auto - a one liner

The best and cleanest way to center a div is to use the margin: 0 auto attributes in styles. Make sure however that you set a width of the div to something specific otherwise it's not going to work.

Note: it seems that this unfortunately doesn't work in IE7. Alternatively you may use the <center> tag.

See an example of the style attribute below:
(click in the box to highlight the code for copy)