<style>
.outer {text-align: center;}
.inner {width: 100px;}
</style>
<div class="outer">
<div class="inner">blar blar</div>
</div>
.outer {text-align: center;}
.inner {width: 100px;}
</style>
<div class="outer">
<div class="inner">blar blar</div>
</div>
text-align : 익스플로러에서는 잘된다.
근데 불여시는 ㅠㅠ.. 안된다.
<center> 태그로 처리하자니 변경시 태그부분을 손을 봐야 하고...
text-align:-moz-center 를 사용하면 익스플로러에서 안되고...
이럴땐 다음과 같이 사용해 보기도 하자.
<style>
.outer {text-align: center;}
.inner {width: 100px;margin-left: auto;margin-right: auto;} /*이 부분만 변경되었다.*/
</style>
<div class="outer">
<div class="inner">blar blar</div>
</div>
.outer {text-align: center;}
.inner {width: 100px;margin-left: auto;margin-right: auto;} /*이 부분만 변경되었다.*/
</style>
<div class="outer">
<div class="inner">blar blar</div>
</div>
글이 몇개 되지도 않는데... 조금씩 퍼가는 사람이 생기니 신기하기도 하고...
그런데 퍼갈땐 한 줄 남겨주는 센스... ㅠㅠ 나 부터 개념챙기자.
'Computing' 카테고리의 다른 글
외국 RBL 스팸등록 여부 확인 사이트 (0) | 2010.04.07 |
---|---|
문자열 중에서 한글/한자/일어 찾는 정규식 (0) | 2010.03.23 |
Developer Notes for prototype.js (0) | 2009.02.16 |
윈도우환경에서 php5 세팅시 php_oci8.dll 문제... (0) | 2009.01.20 |
시너지(synergy) 1.3.1 한글패치버젼 (Key Patch) (0) | 2008.11.24 |