<html>
<head><style>#header {background: #44accf;height: 50px;}#content {background: #b7d84b;width: 75%;height: 500px;float: left;}#navigation {background: #e2a741;width: 25%;height: 500px;float: right;}#footer {background: #ee3e64;height: 50px;clear: both;}</style></head><body><div id="header"></div><div id="content"></div><div id="navigation"></div><div id="footer"></div></body></html>
]]>Gorgeous! By setting the clear
property to both
, we're telling the footer that it needs to sit below any floated element.
Don't we want the footer to set below any floated element?