๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๊ฐœ์ธ๊ณต๋ถ€/HTML5 + CSS3

[HTML+CSS][๋‹ค์žฌ๋‹ค๋Šฅํ•œ CSS3 ์„ ํƒ์ž] 04 - ์—ฐ์Šต๋ฌธ์ œ

by ๐Ÿ‡๋ฐ•๋ด‰๋ด‰๐Ÿ‡ 2020. 7. 23.

 

01

 

<!DOCTYPE HTML>
<html lang="ko">
<head>
  <meta charset="utf-8">
  <title>CSS ์„ ํƒ์ž</title> 
  <style>
      img.top-img:hover {
          border: 5px solid black;
      }
  </style> 
</head>
<body>
  <p>์ด๋ฏธ์ง€ ์œ„๋กœ ๋งˆ์šฐ์Šค ํฌ์ธํ„ฐ๋ฅผ ์˜ฌ๋ ค๋ณด์„ธ์š”</p>
  <img src="images/tangerines.jpg" class="top-img">
</body>
</html>

 

 


 

 

02

 

<!DOCTYPE HTML>
<html lang="ko">
<head>
  <meta charset="utf-8">
  <title>CSS ์„ ํƒ์ž</title>  
  <style>
    .main-menu {
      margin:50px auto;
      height:60px;
      border:3px solid black;
      width: 400px;
    }
    .main-menu ul {
      margin:0;
      list-style:none;
    }
    .main-menu ul li{
      display:inline-block;
      padding:10px 30px;      
      line-height:40px;
    }
    .main-menu a:link {
        color: black;
        text-decoration: none;
    }
    .main-menu a:visited {
        color: black;
    }
    .main-menu a:active {
        color: blue;
    }
  </style>
</head>
<body>
  <nav class="main-menu">
    <ul>
      <li><a href="#">๋ฉ”๋‰ด1</a></li>
      <li><a href="#">๋ฉ”๋‰ด2</a></li>
      <li><a href="#">๋ฉ”๋‰ด3</a></li>
    </ul>
   </nav>
</body>
</html>

 

 


 

 

< ์ฐธ๊ณ  >

Do it! HTML5+CSS3 ์›น ํ‘œ์ค€์˜ ์ •์„

 

 

โ€ป ํ•ด๋‹น ๊ธ€์€ ์Šต๋“ ๋ชฉ์ ์œผ๋กœ ์ž‘์„ฑ๋œ ๊ธ€์ž…๋‹ˆ๋‹ค โ€ป

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€