Currently in the process of working on a project, I've encountered an issue with aligning the text next to the image to the right within flexboxes. Despite setting up the parent and child classes correctly, the text refuses to move to the desired position.
And here's how it's supposed to look like
Provided below is the HTML and CSS code:
.thesis-main-container h1 {
text-align: center;
padding: 2rem;
}
.thesis-container {
display: flex;
}
.thesis-main {
justify-content: center;
align-items: center;
padding: 2rem;
flex: 1;
}
.thesis-sidebar {
flex: 0 0 40%;
display: flex;
flex: wrap;
}
.thesis-sidebar img {
width: 35%;
height: auto;
}
.img-box {
width: 300px;
}
.img-box img {
width: 100%;
flex: 0 0 300px;
}
.info-box {
padding: 1rem;
}
<div class="thesis-main-container">
<h1>Thesis Exhibit</h1>
<div class="thesis-container">
<!----Parent class-->
<section class="thesis-main">
<!----Child class-->
<video video controls autoplay loop width=100% src="assests/videos/thesis.mp4"></video>
<h2>Reimagine Urban</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ipsum similique impedit iure.</p>
</section>
<aside class="thesis-sidebar">
<!---parent class-->
<div class="thesis-child">
<div class="img-box">
<img src="assests/images/thesis-fisma.jpg" alt="">
</div>
<div class="info-box">
<h3>Fisma: Design and Prototype</h3>
<p>Design showcase of new prototype project</p>
</div>
<div class="thesis-child">
<div class="img-box">
<img src="assests/images/thesis-fisma.jpg" alt="">
</div>
<div class="info-box">
<h3>Fisma: Design and Prototype</h3>
<p>Design showcase of new prototype project</p>
</div>
</div>
</aside>
</div>
</div>