JSFiddle - React, Tailwind, and code Playground

by bvotcode

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Images and Title Layout</title>
    <style>
     
    </style>
</head>
<body>
  <div class="headercontainer">
        <div class="image">
            <img src="https://i.imgur.com/iup1d0Q.png" alt="Left Image">
        </div>
        <div class="title">
            KHẢO SÁT XE 4-7 CHỖ CHẠY XĂNG HOẶC DẦU
        </div>
         <div class="image">
        <img style="float: right;" alt="" src="https://i.imgur.com/h20sr5t.png" />
         </div>  
        
    </div>
</body>
</html>

CSS

.imageheaderandtitle h1 {
position: relative;
top: 18px;
left: 10px;
}
 .headercontainer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            
        }
        .image {
            width: 25%;
        }
        .image img {
            width: 25%;
            height: auto;
            display: block;
        }
        .title {
            flex: 1;
            text-align: center;
            font-size: 16px;
            font-weight: bold;
            color: #333;
        }