I would like the element to fill the remaining space of the parent div. I managed to do this, you can see it here "link removed", but the filling of the div (on the right) is under the left div. I want the right div to start where the left div ends.
Hope this makes sense.
<html> <head> <title></title> <style type="text/css"> #left { float:left; width:180px; background-color:#ff0000; height:20px; } #right { width: 100%; background-color:#00FF00; height:30px; } </style> </head> <body> <div> <div id="left">Nav</div> <div id="right">This is the space I need to fill but not go underneath the nav div</div> </div> </body> </html>
Mitch source share