From 30d10a3c3670e6804618a94aa6b7b8eb39adc6be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B3=BD=EB=8F=99=EC=A4=80?= <k3357943@ajou.ac.kr> Date: Thu, 23 Mar 2023 01:21:26 +0900 Subject: [PATCH] image size change flexible 2 --- public/index.html | 2 +- public/style.css | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index 3398f30..657cb2e 100644 --- a/public/index.html +++ b/public/index.html @@ -36,7 +36,7 @@ </ol> <p>here's the my friend's link</p> - <div class="linkColor"> + <div class="linkFontChange"> <p><a href="http://unidev.ajousw.kr/jiheon-choi/">Choi Ji Heon</a></p> <p><a href="http://sunje105.ajousw.kr/sunje_homepage/">Lee Sun Je</a></p> <p><a href="http://minsol_choo.ajousw.kr/practical_coding_1_html/">Choo Min Sol</a></p> diff --git a/public/style.css b/public/style.css index 85a31e2..a2552e0 100644 --- a/public/style.css +++ b/public/style.css @@ -22,15 +22,21 @@ body { color: #ffffff; } +.centerImage{ + width: 70%; + height: 360px; + overflow: hidden; +} + .centerImage img{ max-width: 100%; - width: 360px; + height: auto; display: block; margin: auto; } -.linkColor{ - font-size: 10px; +.linkFontChange{ + font-size: 15px; font-style: italic; background-color: aqua; } \ No newline at end of file -- GitLab