<?
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
13년 전
DTD가...
게시판 목록
디자인
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 566 | 14년 전 | 5331 | ||
| 565 |
gtm100
|
14년 전 | 1056 | |
| 564 | 14년 전 | 1784 | ||
| 563 | 14년 전 | 988 | ||
| 562 |
원시인교주
|
14년 전 | 2145 | |
| 561 | 14년 전 | 908 | ||
| 560 |
|
14년 전 | 1328 | |
| 559 |
누리솔루션
|
14년 전 | 3105 | |
| 558 |
|
14년 전 | 1882 | |
| 557 | 14년 전 | 960 | ||
| 556 |
|
14년 전 | 3127 | |
| 555 |
|
14년 전 | 3443 | |
| 554 |
|
14년 전 | 3234 | |
| 553 |
|
14년 전 | 2933 | |
| 552 |
|
14년 전 | 5194 | |
| 551 |
|
14년 전 | 5644 | |
| 550 |
|
14년 전 | 3420 | |
| 549 |
|
14년 전 | 5959 | |
| 548 |
|
14년 전 | 5708 | |
| 547 |
|
14년 전 | 3713 | |
| 546 |
내꿈은대통령
|
14년 전 | 673 | |
| 545 |
windday
|
14년 전 | 1045 | |
| 544 |
원시인교주
|
14년 전 | 1608 | |
| 543 | 14년 전 | 1194 | ||
| 542 | 14년 전 | 848 | ||
| 541 |
악마의유혹
|
14년 전 | 1501 | |
| 540 | 14년 전 | 899 | ||
| 539 |
|
14년 전 | 3530 | |
| 538 |
mecandoit
|
14년 전 | 1571 | |
| 537 |
|
14년 전 | 2365 | |
| 536 |
|
14년 전 | 1439 | |
| 535 |
|
14년 전 | 2500 | |
| 534 | 14년 전 | 1120 | ||
| 533 |
아름다운세상
|
14년 전 | 1675 | |
| 532 |
|
14년 전 | 2117 | |
| 531 |
|
14년 전 | 1241 | |
| 530 |
반찬투정금지
|
14년 전 | 2170 | |
| 529 |
|
14년 전 | 3242 | |
| 528 | 14년 전 | 2389 | ||
| 527 |
내꿈은대통령
|
14년 전 | 1523 | |
| 526 | 14년 전 | 3969 | ||
| 525 |
|
14년 전 | 1177 | |
| 524 | 14년 전 | 2104 | ||
| 523 | 14년 전 | 8016 | ||
| 522 |
|
14년 전 | 2309 | |
| 521 |
TzM위드컴
|
14년 전 | 2765 | |
| 520 |
|
14년 전 | 1772 | |
| 519 | 14년 전 | 1550 | ||
| 518 |
|
14년 전 | 2172 | |
| 517 | 14년 전 | 4063 | ||
| 516 |
Orangedesign
|
14년 전 | 1829 | |
| 515 | 14년 전 | 3305 | ||
| 514 | 14년 전 | 4632 | ||
| 513 | 14년 전 | 1410 | ||
| 512 | 14년 전 | 4043 | ||
| 511 | 14년 전 | 4251 | ||
| 510 | 14년 전 | 1858 | ||
| 509 | 14년 전 | 1988 | ||
| 508 | 14년 전 | 1169 | ||
| 507 | 14년 전 | 3055 | ||
| 506 | 14년 전 | 1725 | ||
| 505 |
|
14년 전 | 3004 | |
| 504 | 14년 전 | 2529 | ||
| 503 | 14년 전 | 2737 | ||
| 502 | 14년 전 | 2719 | ||
| 501 | 14년 전 | 3878 | ||
| 500 | 14년 전 | 1873 | ||
| 499 | 14년 전 | 2198 | ||
| 498 | 14년 전 | 1834 | ||
| 497 | 14년 전 | 1867 | ||
| 496 | 14년 전 | 1710 | ||
| 495 | 14년 전 | 4825 | ||
| 494 | 14년 전 | 1878 | ||
| 493 | 14년 전 | 2727 | ||
| 492 | 14년 전 | 1115 | ||
| 491 |
|
14년 전 | 2781 | |
| 490 |
|
14년 전 | 1284 | |
| 489 | 14년 전 | 1749 | ||
| 488 | 14년 전 | 1529 | ||
| 487 | 14년 전 | 1636 | ||
| 486 |
내여자친구는구미호
|
14년 전 | 3407 | |
| 485 | 14년 전 | 1885 | ||
| 484 | 14년 전 | 2457 | ||
| 483 |
감각의제국
|
14년 전 | 1347 | |
| 482 |
|
14년 전 | 1402 | |
| 481 |
내여자친구는구미호
|
14년 전 | 3463 | |
| 480 | 14년 전 | 1696 | ||
| 479 | 14년 전 | 3024 | ||
| 478 |
|
14년 전 | 1601 | |
| 477 |
SIR정회원
|
14년 전 | 1448 | |
| 476 | 14년 전 | 2108 | ||
| 475 | 14년 전 | 2221 | ||
| 474 | 14년 전 | 1244 | ||
| 473 |
|
14년 전 | 912 | |
| 472 | 14년 전 | 1423 | ||
| 471 |
|
14년 전 | 1154 | |
| 470 | 14년 전 | 1441 | ||
| 469 |
minini
|
14년 전 | 1333 | |
| 468 | 14년 전 | 1167 | ||
| 467 | 14년 전 | 1178 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기