I'm currently working on my high school project and as a beginner, I am facing difficulties with formatting a column to display my bio. I want it to look like the example below:
However, I am struggling to achieve this using my HTML and CSS code.
Here is my HTML:
<div class="row">
<div class="column">
<img src="photos.png" style="width: 320px;">
</div>
<div class="column" id="david">
<h1>David Watson</h1>
<h2></h2>
</div>
</div>
And here is the CSS code for that:
CSS:
.column {
float: left;
}
.row {
margin-left: 350px;
margin-top: 100px;
}
/* Clear floats after the columns */
h1 {
font-weight: 10;
font-style: italic;
}
By the way, this is how it appears: