CCS 10장

TO AC·2022년 3월 11일
0

CCS

목록 보기
9/20

HTML ``` 폰트와 텍스트

Website Title

Website slogan included here.

  <nav class="site-nav">
    <ul class="group">
      <li><a href="#">Home</a></li>
      <li><a href="#">About</a></li>
      <li><a href="#">Portfolio</a></li>
      <li><a href="#">Contact Us</a></li>
    </ul>
  </nav>
</header>

<div class="content-area group">

  <div class="main-area">
    <h2>그들의 장비와 기구는</h2>

    <p>This is the main area (or column). <strong>Sample bold text</strong>. Lorem ipsum <a href="#">this is a
        sample link</a> dolor sit amet, <em><strong>sample bold italic text</strong></em> consectetur adipisicing
      elit, sed do eiusmod tempor incididunt
      ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris</p>

    <p>nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
      cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
      officia deserunt mollit anim id est
      laborum.</p>

    <ul>
      <li>Example list item</li>
      <li>Example list item</li>
      <li>Example list item</li>
      <li>Example list item</li>
      <li>Example list item</li>
      <li>Example list item</li>
    </ul>

    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
      dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
      commodo consequat. Duis aute irure
      dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
      cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

    <p>In reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
      cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit
      amet, consectetur adipisicing elit,
      sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud.</p>
  </div>

  <aside class="sidebar">
    <p>This is the sidebar. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
      incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
      laboris nisi ut aliquip ex ea commodo consequat.
      Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu.</p>
  </aside>

</div>

<footer>
  <p>&copy; 2021 - This is the footer.</p>
</footer>
```

style ``` @import url('https://fonts.googleapis.com/css2?family=Hubballi&display=swap'); /* 폰트를 css에 넣을때 항상 제일 상단에 넣는다. */

html {
background-color: #869960;
line-height: 1.7;
}

body {
font-family: 'Roboto', sans-serif;
font-size: 15px;
}

a {
text-decoration: none;
}

/ 텍스트 Style 시작 /
.main-area h2{
font-family: 'Single day', cursive;
font-size: 200%;
font-weight: normal;
font-style: italic;
letter-spacing: 4px;
word-spacing: 10px;
text-shadow: 2px 10px 10px rgba(0, 0, 0, 0.5);
text-transform: lowercase;
}
.main-area p {
font-size: 108;
/ 글자들을 정렬 /
text-align: left;
/ 문장 첫시작을 25px만큼 인덴트 /
text-indent: 25px;
}

.container {
width: 940px;
margin-left: auto;
margin-right: auto;
background-color: #fff;
padding-left: 40px;
padding-right: 40px;
box-sizing: border-box;
}
header {
padding-top: 20px;
color: #617140;
}
header h1{
margin: 0;
font-weight: normal;
font-size: 165%;
}
header h2{
margin: 0;
}

/ Site Navigation /
.site-nav {
margin-top: 20px;
}

.site-nav ul {
margin: 0;
padding: 0;
}

.site-nav li {
list-style: none;
float: left;
margin-right: 5px;
}

.site-nav a {
display: block;
color: #617140;
text-decoration: none;
padding: 10px 20px;
border: 3px solid #e5e9dc;
border-bottom: none;
}

.site-nav a:hover {
background-color: #e5e9dc;
}

/ End Site Navigation /

.content-area {
border-top: 3px solid #e5e9dc;
border-bottom: 3px solid #e5e9dc;
}

.main-area {
width: 66%;
float: left;
padding-right: 40px;
box-sizing: border-box;
}

.sidebar {
font-family: 'hubballi';
width: 34%;
float: left;
background-color: #e5e9dc;
padding: 20px 40px;
box-sizing: border-box;
font-size: 85%;
}

footer {
text-align: center;
font-size: 85%;
color: #999;
padding-bottom: 20px;
padding-top: 20px;
}

.fix {
clear: both;
}

.group:before,
.group:after {
content: "";
display: table;
}

.group:after {
clear: both;
}

.group {
zoom: 1;
}

```

profile
유망주

0개의 댓글