CCS 11장

TO AC·2022년 3월 11일
0

CCS

목록 보기
10/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>Main Column Heading</h2>

    <nav class="ui-menu">
      <ul class="group">
        <li class="ui-home"><a href="#">Home</a></li>
        <li class="ui-profile"><a href="#">Profile</a></li>
        <li class="ui-settings"><a href="#">Settings</a></li>
      </ul>
    </nav>

    <p>This is the main area (or column). 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>

    <div class="birds">
      <p>Birds are great!</p>
    </div>
    <!-- /birds -->

    <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>
© 2022 GitHub, Inc. Terms Privacy Security Status Docs Contact GitHub Pricing API Training Blog About Loading complete

Style ``` @import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

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

body {
font-family: 'PT Sans', Arial, sans-serif;
font-size: 15px;
}

img {
max-width: 100%;
height: auto;
}

a {
text-decoration: none;
}

/ Birds Background Demo /

.birds {
/ background-color: #c2bbb1;
background-image: url(images/bird.jpg);
background-position: center center;
background-repeat: no-repeat;
/
background: url(images/bird.jpg) center center no-repeat red;
/ cover는 공간에 맞게 이미지를 맞춰줌 /
background-size: cover;
text-align: center;
padding: 100px 0;
}

.birds p {
margin: 0;
background-color: rgba(0, 0, 0, 0.7);
color: #fff;
text-shadow: 1px 1px 0 #000;
display: inline-block;
padding: 10px;
}

/ End Birds Demo /

/ UI 메뉴 /
.ui-menu ul {
margin: 0;
padding: 0;
}

.ui-menu li{
float: left;
list-style: none;
margin-right: 20px;
}

.ui-menu a{
/ a는 인라인=> 블록으로 해야 가로세로 수정가능 /
display: block;
width: 50px;
height: 50px;
background-image: url(images/sprites.png);
text-indent: -9999px;
background-repeat: no-repeat;
}

.ui-menu .ui-profile a{
background-position: 0 -50px;
}

.ui-menu .ui-settiongs a{
background-position: 0 -100px;
}

.ui-menu .ui-home a:hover{
background-position: -50px 0;
}

.ui.menu .ui-profile a:hover{
background-position: -50px -50px;
}

.ui-menu .ui-settiongs a:hover{
background-position: -50px -100px;
}

/ Main Column Typography /
.main-area h2 {
font-size: 200%;
font-weight: normal;
font-style: italic;
letter-spacing: 4px;
word-spacing: 10px;
text-transform: lowercase;
}

.main-area p {
font-size: 108%;
}

/ Banner Overlay /
.image-banner {
position: relative;
}

.image-banner img {
display: block;
}

.banner-description {
position: absolute;
bottom: 0;
left: 0;
color: #fff;
background-color: rgba(0, 0, 0, 0.65);
padding: 15px 25px;
}

.container {
background: url(images/color-tile.png) left top repeat-x,
url(images/color-tile.png) left bottom repeat-x;
width: 940px;
margin-left: auto;
margin-right: auto;
background-color: #FFF;
padding-top: 15px;
padding-left: 40px;
box-sizing: border-box;
}

header {
background-image: url(images/image.png);
background-position: center right;
background-repeat: no-repeat;
padding-top: 20px;
color: #617140;
}

header h1 {
margin: 0;
font-weight: normal;
font-size: 165%;
}

header p {
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;
background-color: #fff;
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 {
width: 34%;
float: left;
background-color: #e5e9dc;
background-image: linear-gradient(0deg, rgb(255, 255, 255), rgb(234, 230, 255) 100%);
padding: 20px 40px;
box-sizing: border-box;
font-size: 114%;
}

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개의 댓글