-2

How to align c div on bottom of a?

Position:relative doesnt help.

DEMO

Rahil Wazir
  • 10,007
  • 11
  • 42
  • 64
Taras Lukavyi
  • 1,339
  • 2
  • 14
  • 29

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
  • 331,213
  • 40
  • 305
  • 339