View Single Post
Old 11-01-2023, 12:21 PM   #3
HeartWare
Enthusiast
HeartWare began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Nov 2023
Location: Copenhagen, DK
Device: ReadEra Android, Samsung Galaxy Tab S7+, Android 13
Quote:
Originally Posted by Turtle91 View Post
And welcome to MR!!
Thank you...

Quote:
Originally Posted by Turtle91 View Post
<div class="image"><img src="…" alt=""/></div>

.image {width=50%; float:left}
img {width:100%; max-width: 1000px *or whatever the width of your image*}
From what I've read elsewhere, shouldn't it be

.image {width=50%; height=auto; float:left}

and if not, then why not (just asking to learn).

And is it the img {width:100%; max-width: 1000px *or whatever the width of your image*} part that makes the 50% be 50% of the page width and not the image width?

Also, where do I put the "Text, text" part - inside or outside the <div>? And should the <div> be embedded in a <p> or does the <div> replace the <p> ?

Last edited by HeartWare; 11-01-2023 at 12:23 PM.
HeartWare is offline   Reply With Quote