0% found this document useful (0 votes)
11 views9 pages

List 2

Uploaded by

mubarakokunola2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views9 pages

List 2

Uploaded by

mubarakokunola2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

<meta name='viewport' content='width=device-width, initial-scale=1'/><!

DOCTYPE html>
<html>
<head>
<title>Image and Paragraph Side by Side</title>
<link rel="stylesheet" href="[Link]">
</head>
<body>
<div class="clearfix">
<div class="paragraph">
<p>This is a paragraph of text that will appear on the left side of the page.</p>
</div>
<div class="[Link]
<img src="[Link] alt="[Link]
</div>
</div>
</body>
</html>

[Link] [Link] */

.image-container {
height: 200px; /* Set image height */
width: 200px; /* Set image width */
padding: 20px; /* Add padding around the image */
float: right; /* Float the image to the right */
}

.image-container img {
width: 100%; /* Make the image responsive */
height: auto; /* Maintain aspect ratio */
}

.paragraph {
width: 70%; /* Set paragraph width */
float: left; /* Float the paragraph to the left */
padding: 20px; /* Add padding around the paragraph */
}/* [Link] */

.image-container {
height: 200px; /* Set image height */
width: 200px; /* Set image width */
padding: 20px; /* Add padding around the image */
float: right; /* Float the image to the right */
}

.image-container img {
width: 100%; /* Make the image responsive */
height: auto; /* Maintain aspect ratio */
}

.paragraph {
width: 70%; /* Set paragraph width */
float: left; /* Float the paragraph to the left */
padding: 20px; /* Add padding around the paragraph */
}
.clearfix {
clear: both; /* Clear floats */
}
/* [Link] */

.image-container {
height: 200px; /* Set image height */
width: 200px; /* Set image width */
padding: 20px; /* Add padding around the image */
float: right; /* Float the image to the right */
}

.image-container img {
width: 100%; /* Make the image responsive */
height: auto; /* Maintain aspect ratio */
}

.paragraph {
width: 70%; /* Set paragraph width */
float: left; /* Float the paragraph to the left */
padding: 20px; /* Add padding around the paragraph */
}
.clearfix {
clear: both; /* Clear floats */
}

.clearfix {
clear: both; /* Clear floats */
}
</style>

You might also like