Hi there, I am new to exploring HTML and CSS and I have been trying to display some images and text on a webpage. My goal was to have the text appear next to the image, which is working fine. However, I am encountering an issue where the text aligns itself to the bottom of the image rather than the top. Can someone please help me adjust the code so that the text starts from the top of the image?
Here is the CSS code I am using:
.images{
float: left;
margin: 5px;
}
And here is my HTML code:
<!DOCTYPE html>
<html>
<head>
<title>Contact</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../css/main.css" />
<link rel="stylesheet" href="../css/contact.css" />
</head>
<header>
<div id="logo">
<h1><a href="../html/index.html" id="logoLink">Baby Clothing Online</a></h1>
</div>
<div id="nav">
<ul>
<li><a href="../html/index.html"id="homenav">Home</a></li>
<li><a href="../html/clothing.html"id="clothingnav">Clothing</a></li>
<li><a class="inuse" href="../html/contact.html"id="contactnav">Contact</a> </li>
<li><a href="../html/questions.html"id="questionsnav">Questions</a></li>
</ul>
</div>
</header>
<body id = "contact">
<div id="page">
<div class="content">
<h2>Contact</h2>
<images>
<img src="../images/logo.PNG">
The company 'Baby Clothing Online' was founded in 1953 by a dynamic Belgian entrepreneur couple. The first store opened on Groenplaats in Antwerp. Here you can find the first clothing for newborns, babies, toddlers, and preschoolers.
Initially, production took place on a floor in a clothing workshop where all new designs were developed.
Later on, more stores were opened. The couple quickly surrounded themselves with employees.
The small clothing workshop grew into a large platform where various fashion designers worked.
Slowly, new stores opened all over Belgium.
The brand then expanded beyond borders: branches were opened in Luxembourg and Athens. The company continues to expand internationally.
Today, the Belgian brand has come a long way with nearly 300 stores worldwide. Baby Clothing Online aims to make life more beautiful and easier for mothers and their young children, offering a range from cuddly toys, loungewear, bottle warmers, changing tables, furniture, to maternity and children's clothing.
</images>
<br>
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.nl/maps?f=q&source=s_q&hl=nl&geocode=&q=KGD+Groenplaats,+Antwerpen,+Belgi%C3%AB&aq=&sll=51.219125,4.40313&sspn=0.002967,0.008165&ie=UTF8&hq=KGD&hnear=Groenplaats,+2000+Antwerpen,+Belgi%C3%AB&ll=51.218201,4.400925&spn=0.006295,0.006295&t=h&output=embed"></iframe><br /><small><a href="https://maps.google.nl/maps?f=q&source=embed&hl=nl&geocode=&q=KGD+Groenplaats,+Antwerpen,+Belgi%C3%AB&aq=&sll=51.219125,4.40313&sspn=0.002967,0.008165&ie=UTF8&hq=KGD&hnear=Groenplaats,+2000+Antwerpen,+Belgi%C3%AB&ll=51.218201,4.400925&spn=0.006295,0.006295&t=h" style="color:#0000FF;text-align:left">View Larger Map</a></small>
<br>
</div>
</div>
</body>
</html>
Thank you in advance for your assistance!