-2

How to align c div on bottom of a?

Position:relative doesnt help.

DEMO

Rahil Wazir
  • 9,801
  • 11
  • 41
  • 63
Taras Lukavyi
  • 1,259
  • 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
  • 319,460
  • 37
  • 290
  • 318