Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAC-377 fix : 사진 크기 고정 및 중앙 정렬 #274

Merged
merged 1 commit into from
May 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions src/main/resources/templates/seniorCertification.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
<link th:href="@{/css/bootstrap.min.css}"
href="css/bootstrap.min.css" rel="stylesheet">
<style>
.image {
.image-container {
width: 400px;
margin-left:auto;
margin-right:auto;
margin: 0 auto; /* 가로 중앙 정렬 */
text-align: center; /* 이미지를 가운데 정렬하기 위해 추가 */
}

.image {
max-width: 100%; /* 이미지의 최대 너비를 부모 요소인 .image-container에 맞춤 */
height: auto; /* 이미지의 가로 세로 비율 유지 */
}

table {
Expand All @@ -25,9 +30,6 @@
</head>
<body>
<table id="seniorInfos">
<div class="image">
<image th:src="${certificationInfo.certification()}"></image>
</div>
<thead>
<tr>
<th>닉네임</th>
Expand All @@ -42,6 +44,7 @@
</tr>
</thead>
<tbody>
<tbody>
<td th:text="${certificationInfo.nickName()}">id</td>
<td th:text="${certificationInfo.phoneNumber()}">nickName</td>
<td th:text="${certificationInfo.createdAt()}">phoneNumber</td>
Expand All @@ -51,6 +54,11 @@
<td th:text="${certificationInfo.lab()}">isUser</td>
<td th:text="${certificationInfo.professor()}">isUser</td>
<td th:text="${certificationInfo.keyword()}">isUser</td>
<tr>
<td colspan="9" class="image-container">
<image class="image" th:src="${certificationInfo.certification()}"></image>
</td>
</tr>
</tbody>
</table>
<table>
Expand Down
Loading