Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move div vertically down using CSS

I'm new to CSS and I'd like to move a div section down (pls see attached image below):

enter image description here

How do I make the div.title "float down" so that it neatly settles to the bottom left corner of the main div (aqua coloured box).

I've tried vertical-align but it doesnt work.

like image 717
viv_acious Avatar asked Apr 10 '13 06:04

viv_acious


2 Answers

Give margin-top

div{margin-top:10px;}
like image 54
Akhil Thesiya Avatar answered Sep 26 '22 18:09

Akhil Thesiya


You could make your blue div position: relative and then give the div.title position:absolute; and bottom: 0px

Here is a working demo.. http://jsfiddle.net/gLaG6/

like image 41
TryingToImprove Avatar answered Sep 26 '22 18:09

TryingToImprove