<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/setpage.php");
include_once("$g4[path]/lib/thumb.lib.php");
/*
$xml = file_get_contents("{$g4[path]}/flash/mainmenu.xml");
$parser = new XMLParser($xml);
$parser->Parse();
*/
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/setpage.php");
include_once("$g4[path]/lib/thumb.lib.php");
/*
$xml = file_get_contents("{$g4[path]}/flash/mainmenu.xml");
$parser = new XMLParser($xml);
$parser->Parse();
*/
$cPos = substr($fixPageMode,0,1);
$fixNum = "";
if($cPos == "x"){
$fixNum = 5;
}elseif($cPos == "y"){
$fixNum = 6;
}else{
$fixNum = substr($fixPageMode,1,2) - 1;
}
if($cPos == "x"){
$fixNum = 5;
}elseif($cPos == "y"){
$fixNum = 6;
}else{
$fixNum = substr($fixPageMode,1,2) - 1;
}
if($sel_id){
$fixPageMode = substr($fixPageMode,0,4) . $sel_id ;
}
?>
<div id="subbg">
<div id="subwrapper">
<div id="header"><script language=javascript>flash_movie2("<?=$g4[path]?>/flash/mainnavi.swf", "mainnavi", 950, 120, "transparent");</script></div>
<div id="subvisual"><? include_once("subvisual.php") ?></div>
<div id="subcontent">
<div id="subcon1"><? include_once("../sub1/leftmenu.php") ?></div>
<div id="subcon2"><img src="../images/sub1title.jpg">
<div id="subwrapper">
<div id="header"><script language=javascript>flash_movie2("<?=$g4[path]?>/flash/mainnavi.swf", "mainnavi", 950, 120, "transparent");</script></div>
<div id="subvisual"><? include_once("subvisual.php") ?></div>
<div id="subcontent">
<div id="subcon1"><? include_once("../sub1/leftmenu.php") ?></div>
<div id="subcon2"><img src="../images/sub1title.jpg">
#subbg {
width:950px;
background:url(/images/bg.jpg) repeat-x;
}
#subwrapper {
margin:auto;
width:950px;
background:url(/images/bg.jpg) repeat-x;
}
#subwrapper {
margin:auto;
width:950px;
}
이런식으로 되어있는데요 메인페이지도 똑같이 했는데 메인은 중앙정렬이 됐거든요
근데 서브는 중앙으로 움직일 생각을 안하네요 이거 왜이럴까요 도와주세요 ㅠ
댓글 11개
LaRuota
14년 전
상단 include에서 css 파일은 불러들이셨죠?
#subwrapper 에서
margin:0 auto; 로 수정해보세요..
아주가끔css 꼬여서 이도저도 안되면 <center> 때려넣어버리기도 합니다..
#subwrapper 에서
margin:0 auto; 로 수정해보세요..
아주가끔css 꼬여서 이도저도 안되면 <center> 때려넣어버리기도 합니다..
14년 전
subbg 안에 subwrapper 가 포함되는 형식이라 지금은 subbg 에 margin: 0 auto; 를 넣으셔야 할겁니다.
subbg, subwrapper 가 동일하게 가로 950인데 부모격인 subbg 는 기본정렬이 좌측이니 950 내에서 950을 가진 subwrapper 가 화면 중앙으로 올 수가 없는 것이죠.
subwrapper 크기를 950보다 작게 하시고 margin: 0 auto 로 스타일 주시고 테스트해보시면 금방 이해되실 겁니다.
subbg, subwrapper 가 동일하게 가로 950인데 부모격인 subbg 는 기본정렬이 좌측이니 950 내에서 950을 가진 subwrapper 가 화면 중앙으로 올 수가 없는 것이죠.
subwrapper 크기를 950보다 작게 하시고 margin: 0 auto 로 스타일 주시고 테스트해보시면 금방 이해되실 겁니다.
leadK
14년 전
<div id="subwrapper" class="subbg">
#subwrapper {
margin: 0 auto;
width:950px;
}
.subbg {
background:url(/images/bg.jpg) repeat-x;
}
이렇게 하면 안되는건가요 -ㅅ- 백그라운드가 중복되는게 아니라면 그냥 클래스로 처리해줘도 될것 같습니다만...
#subwrapper {
margin: 0 auto;
width:950px;
}
.subbg {
background:url(/images/bg.jpg) repeat-x;
}
이렇게 하면 안되는건가요 -ㅅ- 백그라운드가 중복되는게 아니라면 그냥 클래스로 처리해줘도 될것 같습니다만...
14년 전
DTD가 정의되어있어야해요
한번잘해보자
14년 전
댓글 달아주신 선배님들 모두모두 감사합니다 ( _ _ )
천천히 읽어보고 똑같이 따라한다고 했는데 먼가 제대로 안했나봐요 ^^;;;
계속 도전해야겠습니다
천천히 읽어보고 똑같이 따라한다고 했는데 먼가 제대로 안했나봐요 ^^;;;
계속 도전해야겠습니다
14년 전
네이트온으로 한번 봐드릴까요?
쪽지로 네이트온 아이디 보내주세요.
쪽지로 네이트온 아이디 보내주세요.
14년 전
제 생각도 DTD 선언-ㅅ-
14년 전
익스에서는 body 에 text-align:center; 이 있어야합니다. body {text-align:center;} 그리고 전체를 감싸고 있는게 #subbg 라면 여기에 #subbg {margin:0 auto; text-align:left;} 이렇게 줘보세요.
14년 전
드림위버라면 머리태그 속성에서 중앙정렬시키면되지않나요?;;
14년 전
<div style="width:100%; text-align:center;">
<div style="width:950px; margin:0 auto;">
내용
</div>
</div>
이런 방식이 아니면 LaRuota님 처럼 <center></center>를 넣어주셔도 될듯합니다.
대신 최 상위의 개념으로 center를 사용하셔야 할듯.
<div style="width:950px; margin:0 auto;">
내용
</div>
</div>
이런 방식이 아니면 LaRuota님 처럼 <center></center>를 넣어주셔도 될듯합니다.
대신 최 상위의 개념으로 center를 사용하셔야 할듯.
Lonnie
14년 전
DTD가...
게시판 목록
디자인
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1266 | 13년 전 | 2005 | ||
| 1265 | 13년 전 | 2330 | ||
| 1264 | 13년 전 | 16668 | ||
| 1263 | 13년 전 | 2810 | ||
| 1262 | 13년 전 | 1455 | ||
| 1261 |
또다른세상
|
13년 전 | 1615 | |
| 1260 |
또다른세상
|
13년 전 | 2463 | |
| 1259 |
|
13년 전 | 1455 | |
| 1258 |
wonup2
|
13년 전 | 1836 | |
| 1257 | 13년 전 | 1845 | ||
| 1256 | 13년 전 | 2265 | ||
| 1255 |
|
13년 전 | 3131 | |
| 1254 |
그누보드시작해요
|
13년 전 | 908 | |
| 1253 |
그누보드시작해요
|
13년 전 | 1136 | |
| 1252 |
그누보드시작해요
|
13년 전 | 945 | |
| 1251 |
그누보드시작해요
|
13년 전 | 1097 | |
| 1250 | 13년 전 | 3173 | ||
| 1249 |
그누보드시작해요
|
13년 전 | 1124 | |
| 1248 |
그누보드시작해요
|
13년 전 | 1035 | |
| 1247 |
그누보드시작해요
|
13년 전 | 1274 | |
| 1246 |
|
13년 전 | 1531 | |
| 1245 | 13년 전 | 1779 | ||
| 1244 |
wjdxo
|
13년 전 | 1164 | |
| 1243 | 13년 전 | 1033 | ||
| 1242 | 13년 전 | 1261 | ||
| 1241 |
|
13년 전 | 2357 | |
| 1240 |
또다른세상
|
13년 전 | 4044 | |
| 1239 |
또다른세상
|
13년 전 | 2510 | |
| 1238 | 13년 전 | 4395 | ||
| 1237 |
|
13년 전 | 1143 | |
| 1236 |
스키페트롤
|
13년 전 | 2098 | |
| 1235 | 13년 전 | 1359 | ||
| 1234 | 13년 전 | 3314 | ||
| 1233 | 13년 전 | 1328 | ||
| 1232 | 13년 전 | 2949 | ||
| 1231 |
|
13년 전 | 1773 | |
| 1230 | 13년 전 | 1042 | ||
| 1229 |
|
13년 전 | 1044 | |
| 1228 |
|
13년 전 | 1042 | |
| 1227 | 13년 전 | 1374 | ||
| 1226 |
아름다운세상
|
13년 전 | 2250 | |
| 1225 |
|
13년 전 | 1885 | |
| 1224 | 13년 전 | 1088 | ||
| 1223 | 13년 전 | 1404 | ||
| 1222 |
아름다운세상
|
13년 전 | 3334 | |
| 1221 | 13년 전 | 1042 | ||
| 1220 | 13년 전 | 1181 | ||
| 1219 |
|
13년 전 | 1261 | |
| 1218 | 13년 전 | 1323 | ||
| 1217 | 13년 전 | 773 | ||
| 1216 |
|
13년 전 | 1225 | |
| 1215 | 13년 전 | 2857 | ||
| 1214 | 13년 전 | 3282 | ||
| 1213 | 13년 전 | 1063 | ||
| 1212 |
|
13년 전 | 2465 | |
| 1211 | 13년 전 | 3771 | ||
| 1210 |
|
13년 전 | 3235 | |
| 1209 | 13년 전 | 3239 | ||
| 1208 |
|
13년 전 | 1820 | |
| 1207 |
|
13년 전 | 2308 | |
| 1206 |
|
13년 전 | 1256 | |
| 1205 | 13년 전 | 1083 | ||
| 1204 |
|
13년 전 | 1640 | |
| 1203 |
|
13년 전 | 1778 | |
| 1202 |
JBstyle
|
13년 전 | 1194 | |
| 1201 |
한번잘해보자
|
13년 전 | 1335 | |
| 1200 | 13년 전 | 1353 | ||
| 1199 | 13년 전 | 1395 | ||
| 1198 |
|
13년 전 | 1139 | |
| 1197 |
|
13년 전 | 1790 | |
| 1196 |
JBstyle
|
13년 전 | 4779 | |
| 1195 |
JBstyle
|
13년 전 | 4883 | |
| 1194 |
Rainsu
|
13년 전 | 1353 | |
| 1193 |
|
13년 전 | 1234 | |
| 1192 |
|
13년 전 | 1255 | |
| 1191 |
|
13년 전 | 1006 | |
| 1190 | 13년 전 | 1153 | ||
| 1189 | 13년 전 | 2437 | ||
| 1188 |
|
13년 전 | 1289 | |
| 1187 |
|
13년 전 | 1265 | |
| 1186 |
아름다운세상
|
13년 전 | 2516 | |
| 1185 |
freejazzme
|
13년 전 | 1282 | |
| 1184 | 13년 전 | 1113 | ||
| 1183 |
|
13년 전 | 1126 | |
| 1182 |
|
13년 전 | 2134 | |
| 1181 |
Rainsu
|
13년 전 | 1130 | |
| 1180 |
|
13년 전 | 1190 | |
| 1179 |
|
13년 전 | 2588 | |
| 1178 |
sahara
|
13년 전 | 914 | |
| 1177 | 13년 전 | 5027 | ||
| 1176 | 13년 전 | 1009 | ||
| 1175 | 13년 전 | 1031 | ||
| 1174 |
|
13년 전 | 953 | |
| 1173 | 13년 전 | 981 | ||
| 1172 |
|
13년 전 | 1777 | |
| 1171 | 13년 전 | 4803 | ||
| 1170 | 13년 전 | 4499 | ||
| 1169 |
광운대학교미디어프로듀서팀
|
13년 전 | 1332 | |
| 1168 |
미션임파썩을
|
13년 전 | 5169 | |
| 1167 |
|
13년 전 | 2370 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기