글을 편하게 읽을 수 있도록 하기 위해서 CSS 검토할 주요 내용은 무엇일까?
우선은 font 관련 항목 (font-family, font-size, line-height) 이고 그 다음은 제목, 소제목, Boxing 등 편집과 관련된 부분일 것이다.
우선은 font 관련 항목 (font-family, font-size, line-height) 이고 그 다음은 제목, 소제목, Boxing 등 편집과 관련된 부분일 것이다.
폰트 선택
보통 중요한 것은 font-size 인데, 대개의 문서에서 글씨체가 다양하기보다는 글씨의 크기가 다양하고, 또 글씨의 변형들에 대해서는 브라우저 스타일시트에 잘 정의되어 있으므로 그다지 손대지 않아도 되기 때문입니다. CSS 규칙에서 font-size를 사용할때는 뒤에 단위가 붙거나, small 또는 medium 같은 예약어를 사용합니다.
버튼 / 아이콘 라벨 / 링크 목록
(p class="memo") [font-family] gulim, tahoma, sans-serif
(p class="info") [font-size] 기본은 12px
(p class="link") SyntaxHighlighter Hosting
Syntax Highlighter
Syntax Highlighter 는 현재 3.x 버전이 나와 있으나, 맘에 들지 않아서 당분간 2.x 를 사용합니다.
<script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shCore.js"></script> <script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushXml.js"></script> <link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/2.0.320/styles/shCore.css"/> <link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/2.0.320/styles/shThemeDefault.css"/> <script type="text/javascript"> SyntaxHighlighter.config.clipboardSwf = 'http://alexgorbatchev.com/pub/sh/2.0.320/scripts/clipboard.swf'; SyntaxHighlighter.all(); </script>
metafoo_tistory.zip
댓글을 달아 주세요
대략 위에 있는 요소들을 섞어쓰면 그나마 좀 읽기 편한 글을 쓸 수 있을 것 같습니다.
2011/05/02 01:03 [ ADDR : EDIT/ DEL : REPLY ]글을 쓸 때 기본 템플릿처럼 사용할 예정입니다.
현재까지 작업된 skin.html, style.css 및 관련 파일을 첨부해 둡니다.
2011/05/04 01:58 [ ADDR : EDIT/ DEL : REPLY ]다운받아 가실 때는 흔적을 남겨 주시길...