From 8bc2e91864579d3ef90b3ee35dc01aab6f121ecf Mon Sep 17 00:00:00 2001 From: pb <akdl4045@ajou.ac.kr> Date: Wed, 22 Mar 2023 23:35:19 +0900 Subject: [PATCH] modi_5 --- public/index.html | 6 +++--- public/style.css | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 1642880..dba32be 100644 --- a/public/index.html +++ b/public/index.html @@ -7,13 +7,13 @@ <link rel="stylesheet" href="style.css"> </head> <body> - <div style="text-align : center;"> + <div class="container"> <img><img src = "1.jpg" alt = "No image" width="300" height ="300"> </div> <h1>안녕하세요 박병하의 홈페이지입니다!</h1> - <h2>동료 홈페이지입니다</h2> - <a href="http://ygg0418.ajousw.kr/testhomepage/"> mate-web-page</a> + <h2>↓동료 홈페이지입니다↓</h2> + <a href="http://ygg0418.ajousw.kr/testhomepage/"> 동료 web-page</a> <h3 style="color:aquamarine">취미 </h3> <ol> diff --git a/public/style.css b/public/style.css index 8a39f83..7987ede 100644 --- a/public/style.css +++ b/public/style.css @@ -4,5 +4,13 @@ body { max-width: 1280px; } +.container{ +text-align : center; +} + +.container img{ + display: block; + margin: auto; +} -- GitLab