Feria's code lab
<div align="center"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Playfair+Display|Kanit"><style>
/* กล่องหลัก */
.profile-header {
width: 100%;
max-width: 720px;
background-color: #f4eadc;
border-radius: 22px;
overflow: hidden;
font-family: 'Kanit', sans-serif;
}
/* ตารางจัดเลย์เอาต์ */
.profile-header table {
width: 100%;
border-collapse: collapse;
}
/* ฝั่งรูป */
.profile-img {
width: 45%;
background-color: #d8e0d2;
vertical-align: top;
}
.profile-img img {
width: 100%;
height: 50%;
object-fit: cover;
display: block;
}
/* ฝั่งข้อมูล */
.profile-info {
width: 55%;
padding: 32px 28px;
background-color: #f4eadc;
}
/* หัวข้อใหญ่ */
.profile-title {
font-family: 'Playfair Display', serif;
font-size: 42px;
color: #9aa28f;
letter-spacing: 2px;
margin-bottom: 18px;
}
/* ชื่อ */
.profile-name {
background-color: #ffffff;
border-radius: 12px;
padding: 12px 16px;
font-size: 15px;
color: #555;
width: 80%;
}
</style>
<div class="profile-header">
<table>
<tbody><tr>
<!-- รูป -->
<td class="profile-img">
<img src="https://img5.pic.in.th/file/secure-sv1/IMG_5055e5ccb0d2d74506a6.jpeg">
</td>
<!-- ข้อมูล -->
<td class="profile-info">
<div class="profile-title">
Feria’s code Lab
</div>
<div class="profile-name">
Name: Feria Hayes
</div>
</td>
</tr>
</tbody></table>
</div>
</div>
หน้า:
[1]