I wish percentages in CSS were more explicit:
#foobar {
width: 100% of container width;
height: 100% of contents height;
} #foobar {
width: 100% of container width;
height: 100% of contents height;
}