I have set up a div however the image inside of it exceeds its limits due to float:left. Anything possible to fix this?
Here is my code:
<html>
<head></head>
<body>
<div style='width:600px;min-height:50px;border:1px solid black;padding:5px;'>
<img src='pic.jpg' style='border:1px solid #C0C0C0;padding:5px;float:left;height:150px;width:150px;'>
<div>
<p>There are a lot of things </p>
</div>
</div>
</body>
</html>
Use
overflow:hiddento parent div