홈피를 만들었는데요.. 익스플러창에따라가운데로 정렬하려면..
제가 홈피를 드림위버cs5 책을 보면서 만들었습니니다..
그런데 홈피를 익스플러에 따라 가운데로 정렬을 하게하고싶습니다..
어떻해 해야하나요????
그런데 홈피를 익스플러에 따라 가운데로 정렬을 하게하고싶습니다..
어떻해 해야하나요????
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 5개
<!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>
<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>
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 이 작동합니다