Hey there, I've been encountering some challenges while working with HTML and CSS on a platform known as Teachable.
Essentially, I'm aiming to create a layout with 2 columns: - Column 1 - Image - Column 2 - Text
Whenever I apply <div class="column">
solely to Column 1, it results in this:
However, upon adding <div class="column">
to both sections, the layout appears as you can see here.
You'll notice that column 2 becomes quite narrow in this scenario. Is there a way to adjust things so that column 1 takes up around 25% of the width, while column 2 occupies about 75%?
Below is the CSS code I currently have:
/* Three image containers (use 25% for four, and 50% for two, etc) */
.column {
float: left;
width: 33.33%;
padding: 5px;
}
/* Clear floats after image containers */
.row::after {
content: "";
clear: both;
display: table;
}