카

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

· 2011-12-01 (목) 13:59:31 · 950 · 5
제가 홈피를 드림위버cs5 책을 보면서 만들었습니니다..
그런데 홈피를 익스플러에 따라 가운데로 정렬을 하게하고싶습니다..
어떻해 해야하나요????

댓글 5개

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">
#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 이 작동합니다
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
11-12-02 조회 1,081
11-12-02 조회 1,142
11-12-02 조회 864
11-12-02 조회 910
11-12-02 조회 822
11-12-02 조회 1,694
11-12-02 조회 1,154
11-12-02 조회 1,111
11-12-01 조회 957
11-12-01 조회 939
11-12-01 조회 1,347
11-12-01 조회 906
11-12-01 조회 862
11-12-01 조회 684
11-12-01 조회 1,957
11-12-01 조회 1,691
11-12-01 조회 832
11-12-01 조회 951
11-12-01 조회 1,086
11-12-01 조회 2,303