I've created this code:
<head>
<style type="text/css">
div.img
{
margin: 2px;
border: 1px solid #0000ff;
height: auto;
width: auto;
float: left;
text-align: center;
}
div.img img
{
display: inline;
margin: 3px;
border: 1px solid #ffffff;
}
div.img a:hover img {border: 1px solid #0000ff; width:auto; height:auto}
</style>
</head>
<body>
<div class="img">
<a target="_blank" href="a"><img src="images/p1.jpg" alt="a" width="400" height="300" /></a>
</div>
<div class="img">
<a target="_blank" href="b"><img src="images/p2.jpg" alt="b" width="400" height="300" /></a>
</div>
<div class="img">
<a target="_blank" href="c"><img src="images/p3.jpg" alt="c" width="400" height="300" /></a>
</div>
<div class="img">
<a target="_blank" href="d"><img src="images/p4.jpg" alt="d" width="400" height="300" /></a>
</div>
</body>
</html>
My original intention was to create a basic gallery where the image enlarges when hovered. Everything is working fine, but now I want to set specific dimensions - like a box of 600x300px instead of taking up the entire screen. I assume I need to adjust the CSS, but I'm not sure how.