I want the border to fit the entire way around the text and the image. Currently the border only fits around text and image horizontally and it cuts some of the image vertically. Can anybody solve this?
Code:
<html>
<head>
<s-tyle type="text/css">
#holder{
border: solid 2px black;
width: 760px;
margin: 10px;
padding: 5px;
}
#holder img{
float: right;
}
</style>
</head>
<body>
<div id="holder">
<img alt="sample image" src="images/sample.jpg" />
<p>Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text </p>
</div>
</body>
</html>