inserting image inside a text box in the section of image with text
with CSS or HTML any ideas ?
A user asks how to insert an image inside a text box within an “image with text” section using HTML or CSS.
Solution provided:
<div> with class “text-box” containing both an <img> tag and text contentdisplay: flex) with align-items: center to vertically align the image and textThis approach uses standard HTML/CSS without requiring Liquid templating modifications.
inserting image inside a text box in the section of image with text
with CSS or HTML any ideas ?
Hi @tarekanani
To insert an image inside a text box using HTML and CSS, follow these steps:
HTML:
Your text goes here.
CSS:
.text-box {
border: 1px solid #ccc;
padding: 10px;
display: flex;
align-items: center;
}
.text-box img {
width: 50px; /* Adjust size as needed */
height: auto;
margin-right: 10px; /* Space between image and text */
}