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

홈피를 만들었는데요.. 익스플러창에따라가운데로 정렬하려면..

· 13년 전 · 789 · 5
제가 홈피를 드림위버cs5 책을 보면서 만들었습니니다..
그런데 홈피를 익스플러에 따라 가운데로 정렬을 하게하고싶습니다..
어떻해 해야하나요????

댓글 작성

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

로그인하기

댓글 5개

head.php 맨위에 보시면 테이블 태그 있을겁니다. 거기에 align="center" 속성 넣으시면 될겁니다.
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>
<div id ="container">



<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#apDiv1 {
position:absolute;
left:437px;
top:276px;
width:370px;
height:159px;
z-index:1;
}
</style>
</head>

<body>
<div id="apDiv1"><a href="01_About as/about_set.html" target="_parent"><img src="image/GPstudio_Logo.jpg" width="350" height="142" border="0" align="baseline" /></a></div>
</body>
</html>
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>
<div id ="container">



<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#container {
width:100%;
text-align:center;
}
#apDiv1 {
position:relative;
top:276px;
width:370px;
height:159px;
z-index:1;
}
</style>
</head>

<body>
<div id="apDiv1"><a href="01_About as/about_set.html" target="_parent"><img src="image/GPstudio_Logo.jpg" width="350" height="142" border="0" align="baseline" /></a></div>
</body>
</html>
13년 전
왼쪽으로만 밀려있어요...ㅠ.ㅠ
1. <body> 밑에 <center>
2. <body style='text-align:center'>
3. 그냥 <body>를 쓰셨으면
#apDiv1 {
position:relative;
margin:0 auto 0 auto;
top:276px;
width:370px;
height:159px;
z-index:1;
}
너비를 주셔야 margin 이 작동합니다

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440