Align one Div in another Div on Bottom, Top, Left or Right

Ever wanted to align a button or text inside a div to a certain position? I’ve made an example to demonstrate how you can align that div or other content to the left, right, top or bottom of the parent div.

Align a div to 4 positions

I’ll include the code in a code box, where you need to set it to plain text, if you wan’t to copy and use it for yourself.

Read on!