Trying to add an image to a specific location on a webpage has been challenging. Within my asp.net core application, I have inserted the following code:
@if (SignInManager.IsSignedIn(User)) {
<img src="~/css/Koala.jpg" class="profile" height="100">
}
Although the image displays after the user signs in, I realized that it is too far left. To adjust its position, I included this in the CSS:
.profile {
position: relative;
top: 20px;
left: 100px;
}
Surprisingly, the image did not budge from its original spot?
I attempted using IDs and reviewed the stylesheet references, yet the issue persists. Can anyone identify what I might be doing incorrectly?