XenForo How to Control This images Resize in html/css

A

Amana.Interiors

Guest
im trying to add image which there is text written everything was ok but this image i couild.t control the size to be a backround of the text or at lest


1212.webp

here is my html code

HTML:

Code:
<div class="container">
  <img src="/media/6037214.jpg" alt="Notebook" style="width:50%;">
  <div class="content">
    <h1>Heading</h1>
    <p>text here more</p>
  </div>
</div>

and

CSS:

Code:
.container {
  position: relative;
  text-align: center;
  color: white;
}

.container .content {...

Read more

Continue reading...