๊ฐ๋จํ ์ถ๊ฐํ์ฌ ์ฌ๋ผ์ด๋ ๋์์ธ / ๋ ์ด์์์ ํค๋๋ฅผ ์ถ๊ฐ ํ ์์์์ต๋๋ค.
๋ ๋์ ์๋ฃจ์
์ด ํ์ํฉ๋๋ค. 4 : 3 ๋น์จ๋ก ๋ณ๊ฒฝํ๋ฉด textarea
์์ div
๋ฅผ ์ถ๊ฐํ๋ฉด ํ์ฅ๋์ง ์์ต๋๋ค. ์๊ตฌ ๋จธ๋ฆฌ๊ธ ๋ฐ ๋ฐ๋ฅ ๊ธ ์์ญ์ ๊ฐ ์ฌ๋ผ์ด๋์ ์คํ์ผ ํ
ํ๋ฆฟ์ผ๋ก ์ถ๊ฐํ๋ ๊ฐ๋จํ ๋ฐฉ๋ฒ์ ๋ฌด์์
๋๊น?
<textarea>
์ด์ธ์ ํญ๋ชฉ์ ์ถ๊ฐํด์๋ ์๋ฉ๋๋ค. ์ํ๋ ๊ฒ์ layout
์ฌ๋ผ์ด๋ ์์ฑ์ ์ฌ์ฉํ์ฌ ๋ค์ ๋ชจ๋ ์ฌ๋ผ์ด๋์ ํฌํจ๋ ๊ณตํต ํค๋๊ฐ ํฌํจ ๋ ์ด๊ธฐ ํ
ํ๋ฆฟ ์ฌ๋ผ์ด๋๋ฅผ ์ ์ํ๋ ๊ฒ์
๋๋ค (์ ๋ ์ด์์ ์ฌ๋ผ์ด๋๊ฐ ์ ์ ๋ ๋๊น์ง ๋๋ layout: false
๋ ๋นํ์ฑํํ๋ ๋ฐ ์ฌ์ฉ๋ฉ๋๋ค).
https://github.com/gnab/remark/wiki/Markdown#layout
๋ฐ๋ฅ ๊ธ์ ๊ดํด์๋ ๊ฐ์ฅ ์ฌ์ด ๋ฐฉ๋ฒ์ ์ถ๊ฐ ์๋ง <div class="footer">your footer text</div>
๊ฐ์ ๋ ์ด์์ ์ฌ๋ผ์ด๋ ๋ฐ ์ฌ์ฉ CSS๋ฅผ .footer { position: absolute; bottom: 12px; left: 20px }
์ฌ๋ฐ๋ฅด๊ฒ ๋ฐฐ์นํฉ๋๋ค.
์์ ํ! ๊ฐ์ฌํฉ๋๋ค!
๋ฐ๋ฅ ๊ธ์ ์ด๋ฏธ์ง๋ฅผ ๋ฃ๋ ๋ฐฉ๋ฒ์ ์์๋ผ ์์๋ ๊ฒ ๊ฐ์ต๋๋ค.
์ ๋ฅผ ์ฌ๋ฐ๋ฅธ ๋ฐฉํฅ์ผ๋ก ์๋ดํด ์ฃผ์๊ฒ ์ต๋๊น?
@arioch ์ด๊ฒ์ด ๋ด๊ฐ ๊ฐ์ง ๊ฒ์ ๋๋ค. ๋จธ๋ฆฌ๊ธ์ ์ด๋ฏธ์ง์ด์ง๋ง ๋ฐ๋ฅ ๊ธ์ ์ด๋ฏธ์ง๋ก ์ฝ๊ฒ ์กฐ์ ํ ์ ์๋ค๊ณ ํ์ ํฉ๋๋ค. ๋ด ํค๋์ ํฐ์์์ ์ฃผํฉ์์ผ๋ก ๊ทธ๋ผ๋์ธํธ๊ฐ ์์ต๋๋ค.
<link rel="stylesheet" type="text/css" href="my-remark.css"/>
<body>
<textarea id="source">
layout: true
<div class="my-header"><img src="images/logo_tiny.png" style="height: 30px;"/></div>
<div class="my-footer"><span>© 2011 - 2015 My Company, Inc.</span></div>
---
class: center, middle
Title Page
---
## Table of Contents
Slide 2
</textarea>
==== CUT my-remark.css =====
/* Header/Footer stuff */
div.my-header {
background-color: #F77A00;
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#ffb76b), color-stop(0%,#ffa73d), color-stop(0%,#ffffff), color-stop(10%,#ffffff), color-stop(25%,#F77A00), color-stop(100%,#F77A00));
position: fixed;
top: 0px;
left: 0px;
height: 30px;
width: 100%;
text-align: left;
}
div.my-footer {
background-color: #F77A00;
position: absolute;
bottom: 0px;
left: 0px;
height: 20px;
width: 100%;
}
div.my-footer span {
font-size: 10pt;
position: absolute;
left: 15px;
bottom: 2px;
}
๊ทธ๊ฒ ์ ๊ฐ ์ฐพ๋ ๊ฒ์ ๋๋ค. ๊ฐ์ฌํฉ๋๋ค!
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
<textarea>
์ด์ธ์ ํญ๋ชฉ์ ์ถ๊ฐํด์๋ ์๋ฉ๋๋ค. ์ํ๋ ๊ฒ์layout
์ฌ๋ผ์ด๋ ์์ฑ์ ์ฌ์ฉํ์ฌ ๋ค์ ๋ชจ๋ ์ฌ๋ผ์ด๋์ ํฌํจ๋ ๊ณตํต ํค๋๊ฐ ํฌํจ ๋ ์ด๊ธฐ ํ ํ๋ฆฟ ์ฌ๋ผ์ด๋๋ฅผ ์ ์ํ๋ ๊ฒ์ ๋๋ค (์ ๋ ์ด์์ ์ฌ๋ผ์ด๋๊ฐ ์ ์ ๋ ๋๊น์ง ๋๋layout: false
๋ ๋นํ์ฑํํ๋ ๋ฐ ์ฌ์ฉ๋ฉ๋๋ค).https://github.com/gnab/remark/wiki/Markdown#layout
๋ฐ๋ฅ ๊ธ์ ๊ดํด์๋ ๊ฐ์ฅ ์ฌ์ด ๋ฐฉ๋ฒ์ ์ถ๊ฐ ์๋ง
<div class="footer">your footer text</div>
๊ฐ์ ๋ ์ด์์ ์ฌ๋ผ์ด๋ ๋ฐ ์ฌ์ฉ CSS๋ฅผ.footer { position: absolute; bottom: 12px; left: 20px }
์ฌ๋ฐ๋ฅด๊ฒ ๋ฐฐ์นํฉ๋๋ค.