I am currently working on a website using bootstrap 4, and I'm facing an issue with the image I selected. It seems to rotate to the right and is not displaying correctly.
The main problem lies in rotating the image without affecting other CSS properties.
In this particular case, the image has the class "img-fluid".
<div class="row">
<div class="col-lg-4">
<!-- STYLE SECTION
<style type="text/css">
img { transform: rotate(270deg); }
</style>
-->
<img class="img-fluid" alt="Bootstrap Image Preview" src="C:\Additional Folders\Harvard CS50\Project 0\project0\layoutit\src\larger pic.jpg">
</div>
<div class="col-lg-8">
As seen above, I managed to rotate the image using a style tag within the HTML code, but this caused the image to overlap into other divs and did not produce the desired result.
Furthermore, Bootstrap 4 includes multiple CSS files, raising concerns about whether my modifications will be overridden later on.
For reference: click here for another image example
I suspect that the issue with the image rendering incorrectly could be due to its rectangular shape and width properties, causing it to appear too narrow or stretched out.
If anyone has experience dealing with this issue, your assistance would be greatly appreciated.
Thank you!