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

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

댓글 5개

head.php 맨위에 보시면 테이블 태그 있을겁니다. 거기에 align="center" 속성 넣으시면 될겁니다.
2011-12-01 (목) 16:10:53
게시판이아니라 .. 그냥 홈피로 가는 대문? 입니다..

<!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>
2011-12-01 (목) 17:47:50
<!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>
2011-12-01 (목) 21:49:19
왼쪽으로만 밀려있어요...ㅠ.ㅠ
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 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
11-12-02 조회 1,053
11-12-02 조회 1,105
11-12-02 조회 827
11-12-02 조회 882
11-12-02 조회 789
11-12-02 조회 1,666
11-12-02 조회 1,125
11-12-02 조회 1,078
11-12-01 조회 931
11-12-01 조회 911
11-12-01 조회 1,316
11-12-01 조회 886
11-12-01 조회 832
11-12-01 조회 657
11-12-01 조회 1,926
11-12-01 조회 1,652
11-12-01 조회 806
11-12-01 조회 920
11-12-01 조회 1,059
11-12-01 조회 2,265