<div class="profile">
<img src="image/JaeHeadShot.jpg" alt="Head Shot"/>
<h1> Jae Hong </h1>
</div>
.profile{
border: 2px solid rgba(0,0,0,0.3);
text-align:center;
padding: 30px;
}
img.profile{
width:423;
height:281;
}
Having some issues with my HTML and CSS here. When trying to resize the image through CSS, I'm encountering some problems. However, directly specifying the width and height attributes in the HTML seems to work fine.
<img src="image/JaeHeadShot.jpg" alt="headshot" width="423" height="281"/>
If anyone has any insights on why this is happening or how to fix it within the CSS, your help would be greatly appreciated!