테스트 사이트 - 개발 중인 베타 버전입니다

저 정신이없는건가요? 틀린건가요?

· 13년 전 · 1539 · 13
맨날가지고 노는걸 요즘잠을 재대로 못봐서
짧은거 하나.... 이거 맞는데 왜안되지 그러고 앉아있어요;;

정신이 없는건가요? 틀린건가요?

<html>
<head>
<title>제작중</title>

<style>
#wrapper {width: 952px; margin: auto;}
#top{width:952px; height:40px; background:url(Mu.png);}
#sub{width:952px; height:30px; background:url(sub.png);}
</style>

</head>
<body>

<div id="wrapper">
<div id="top">d</div>
<div id="sub">d</div>
</div>

</body>
</html>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 13개

<style type="text/css">
#wrapper {width:100%; margin:0 auto;border:1px solid #000;text-align:center;}
#top{width:952px; height:40px; background:url(Mu.png);border:1px solid #000;}
#sub{width:952px; height:30px; background:url(sub.png);border:1px solid #000;}
</style>

이렇게 하시면 됩니다.
이렇게 하믄 text 가 가운데 정렬이 됨니다... -..-;;

text-align 은 text 를 정렬하라고 있는겁니다.
13년 전
윗분말씀데로 닥타입이 문제지요.
스타일시트는 저거에 제일 민감하니까요.
로컬에서는 먹는데 서버에서는 안먹으면 서버 마임설정이 문제더라고요..


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>Untitled Document</title>
<style type="text/css">
* {padding:0; margin:0}
#wrapper {margin: 0 auto; width:952px}
#top{width:952px; height:40px; background:url(Mu.png);}
#sub{width:952px; height:30px; background:url(sub.png);}
</style>
</head>

<body>
<div id="wrapper">
<div id="top">d</div>
<div id="sub">d</div>
</div>
</body>
</html>

게시글 목록

번호 제목
284255
284248
284247
284246
284242
284238
284234
284233
284229
284224
284222
284215
284213
284212
284209
284208
284201
284193
284192
284174