Ty, i managed to fix it using the website you gave aswell. That website is very clear in teaching. I will most likely use it for other things!
I have one problem, what if the child element is bigger than the parent? How would you fix this? By changing the width of the parent specifically?
Also you see how the text: http://jsfiddle.net/HwRee/4/
is not properly aligned in the middle.
Edit: nvm its sorted.