-2

How to align c div on bottom of a?

Position:relative doesnt help.

DEMO

Rahil Wazir
  • 9,490
  • 11
  • 38
  • 61
Taras Lukavyi
  • 1,211
  • 2
  • 13
  • 28

1 Answers1

2

You need to make #c absolutely positioned, and #a relatively positioned:

#a {
    width:250px; 
    height:250px; 
    background:grey;        
    position: relative;
}
#b { }
#c {
    bottom:0px; 
    position:absolute;
}

Updated Example

Rory McCrossan
  • 306,214
  • 37
  • 269
  • 303