TIL. 06 CSS - ๋ฐ•์Šค ๋ชจ๋ธ

Minjae Choiยท2021๋…„ 4์›” 21์ผ
0

CSS

๋ชฉ๋ก ๋ณด๊ธฐ
3/6

๐ŸŽˆ ๋ฐ•์Šค ๋ชจ๋ธ ์‹ค์Šต

<!doctype html>
<html>
<head>
    <title>WEB1 - css</title>
    <meta charset="utf-8">
    <style>
        body {
            margin:0;
        }
        a {
            color:black;
            text-decoration: none;
        }
        h1 {
            font-size: 45px;
            text-align: center;
            border-bottom:1px solid gray;
            margin:0;
            padding:20px;
        }
        ol {
            border-right:1px solid gray;
            width:100px;
            margin:0;
            padding:20px;
        }
        #grid {
            display: grid;
            grid-template-columns: 150px 1fr;
        }
        #grid ol {
            padding-left: 33px;
        }
        #grid #article {
            padding-left: 25px;
        }
    </style>
</head>
<body>
<h1><a href="index.html">WEB</a></h1>
<div id="grid">
    <ol>
      <li><a href="1.html">HTML</a></li>
      <li><a href="2.html">CSS</a></li>
      <li><a href="3.html">JavaScript</a></li> 
    </ol>
    <div id="article">
     <h2>CSS</h2>
         <p>
            Cascading Style Sheets (CSS) is a style sheet language
            used for descrribing the presentation of a document written
            in a markup language.[1] Although most often used to set
            the visual style of web pages and user interfaces written
            in HTML and XHTML, the language can be applied to any XML
            document, including plain XML, SVG and XML, and is
            applicable to rendering in speech, or on other media.
         </p>
    </div>
</div>
<br><br>
</body>
</html>

0๊ฐœ์˜ ๋Œ“๊ธ€