홈피를 만들었는데요.. 익스플러창에따라가운데로 정렬하려면.. 정보
홈피를 만들었는데요.. 익스플러창에따라가운데로 정렬하려면..본문
제가 홈피를 드림위버cs5 책을 보면서 만들었습니니다..
그런데 홈피를 익스플러에 따라 가운데로 정렬을 하게하고싶습니다..
어떻해 해야하나요????
그런데 홈피를 익스플러에 따라 가운데로 정렬을 하게하고싶습니다..
어떻해 해야하나요????
댓글 전체
head.php 맨위에 보시면 테이블 태그 있을겁니다. 거기에 align="center" 속성 넣으시면 될겁니다.
게시판이아니라 .. 그냥 홈피로 가는 대문? 입니다..
<!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>
<!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>

<!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>
<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>
왼쪽으로만 밀려있어요...ㅠ.ㅠ
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 이 작동합니다
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 이 작동합니다