묻고답하기
고수님들 레이아웃 좌우 여백문제 알려주세요
2008.12.06 10:33
이미지처럼 좌우여백 사이즈를 넓게 확대하려고 하는 데요
어떻게 해야하는지 고수님들 계시면 알려주세요
댓글 6
-
해커다
2008.12.06 10:40
-
111291
2008.12.06 10:49
메뉴배경 810 이라고할때
해당 레이아웃에서 어느부분을 수정해야 할찌
쫌 상세히 알려줄수 있으세요 ㅋㅋ -
111291
2008.12.06 10:50
@charset "utf-8";
/*
Designed by Yun Seong-hwan
*//* Default Skin - Start */
#selectLang { margin:0; padding:0; }
#gnb { margin:0; padding:0; }
.gnb_sub { margin:0; padding:0; }
#lnb { margin:0; padding:0; }
#lnb ul { margin:0; padding:0; }
#isSearch { margin:0; padding:0; }
#isSearch ul { margin:0; padding:0; }
#footer { margin:0; padding:0; }/* Site Layout - Body Wrap */
body { background:#FFFFFF }
#bodyWrap { width:980px; margin:3.5em auto 0 auto; }/* Site Layout - Logo */
#top { position:relative; width:980px; height:55px; }
#top h1 { position:absolute; margin:0; top:10px; left:0px;}
#top .quickmenu { position:absolute; margin:0; top:0px; right:0px; width:290px; height:30px; }
#top .join { position:absolute; margin:0; top:17px; right:0px; height:40px; overflow:hidden; white-space:nowrap; }/* Site Layout - Header */
#header { position:relative; width:980px; height:65px; background:url(../images/default/bgHeader.jpg) no-repeat right top; margin-bottom:10px; z-index:99;}
#header .news { position:absolute; top:35px; right:10px; width:300px; height:20px; text-align: right;}#it_search_form { position:absolute; top:8px; right:10px;}
#it_search_form .input { border:1px solid #bc4032; height:17px; width:120px; color:#888888; font-size:.9em;}
#it_search_form .submit_button { width:1px; height:1px; visibility:hidden; }/* 상단주메뉴 밑 서브메뉴 처리 부분 */
#gnb { position:absolute; top:0px; height:34px; left:10px; overflow:hidden; white-space:nowrap; margin-bottom:0px;}
#gnb li { float:left; list-style:none; padding-left:2px; position:relative; left:-2px; white-space:nowrap;}
#gnb li a { display:block; float:left; padding:13px 0px 0 0px; width:90px; height:25px; color:#666666; white-space:nowrap; text-align:center; font-size:1.12em; font-weight:bold; text-decoration:none; }
#gnb li a:hover,
#gnb li a:focus { color:#000000;}
#gnb li.on a { font-weight:bold; color:#ffffff; background:url(../images/default/bgGnbOn.gif) no-repeat center top;}/* 메인 2차메뉴 css */
.gnb_sub { position:absolute; top:37px; left:30px; height:24px; overflow:hidden; white-space:nowrap; }
.gnb_sub li { float:left; list-style:none; background:url(../images/default/sub_part.gif) no-repeat left center; padding-left:2px; position:relative; left:-2px; white-space:nowrap;}
.gnb_sub li a { display:block; float:left; padding:6px 15px 0 15px; height:18px; color:#ffffcc; font-weight:bold; white-space:nowrap; text-decoration:none; font-family:"돋움", Dotum, "굴림", Gulim, AppleGothic, Sans-serif;}
.gnb_sub li a:hover,
.gnb_sub li a:focus { color:yellow; }
.gnb_sub li.on a, .gnbin li.on a:hover { font-weight:bold; color:yellow; background:url(../images/default/arrow_3.gif) no-repeat center bottom; }#isSearch { position:absolute; top:8px; right:10px; width:216px; text-align:right;}
#isSearch .searchOrder { display:none;}
#isSearch .checked { position:absolute; left:0; top:0; text-align:left; display:block; padding:5px 0 0 5px; width:64px; height:14px; background:url(../images/default/bgSearchTerm.gif) no-repeat; font:11px "돋움", Dotum, "굴림", Gulim, AppleGothic, Sans-serif; color:#000000; line-height:normal;}
*:first-child+html #isSearch .checked { top:1px; }
#isSearch ul { display:none; position:absolute; left:0; top:18px; padding:2px 0 3px 0; text-align:left; border:1px solid #919898; background:#ffffff;}
#isSearch ul li { width:67px; height:18px; list-style:none; }
#isSearch ul li input { display:none;}
#isSearch ul li label { display:block; padding:4px 0 0 4px; width:63px; height:15px; font:11px "돋움", Dotum, "굴림", Gulim, AppleGothic, Sans-serif; color:#000000;}
#isSearch ul li label.on { background:#ffffff; }
#isSearch ul li label:hover,
#isSearch ul li label:focus { background:#ffffff;}
#isSearch .inputText { vertical-align:middle; position:relative; top:0; _top:-1px; left:1px; padding:3px 3px 1px 3px; width:94px; height:13px; color:#000000; border:1px solid #8E8E8D; background-color:#ffffff; }
#isSearch .inputText:hover,
#isSearch .inputText:focus { border:1px solid #B0B0AF; background-color:#ffffff; }
*:first-child+html body#default #isSearch .inputText { position:relative; top:-1px;}
#isSearch .submit { vertical-align:middle; _position:relative; _top:-1px;}
*:first-child+html body#default #isSearch .submit { position:relative; top:-1px;}/* Site Layout - Content Body */
#contentBody { position:relative; width:980px; padding-bottom:10px; overflow:hidden; background:url(../images/default/bgContentBody.gif) repeat-y left top; border-bottom:1px solid #dddddd;}/* Site Layout - #columnLeft */
#columnLeft { position:relative; float: left; width: 120px; }
#sidenav { position:relative; clear:both; width: 120px; background:#f4f4f4 url(../images/default/submenu_middle.gif) repeat; display:block; }
#sidenav .sub_title { background:url(../images/default/sub_title_bg.gif) no-repeat; height:45px; }
#sidenav .sub_title h1 { margin:0; padding-top:15px; width:120px; text-align:center; font-weight:bold; font-family:Tahoma; font-size:16px; color:#ffffff; }
#sidenav .sub_top { background:#ffffff url(../images/default/submenu_top.gif) no-repeat; height:4px; overflow:hidden;}
#sidenav .sub_bottom { background:#ffffff url(../images/default/submenu_bottom.gif) no-repeat; height:4px; overflow:hidden;}#lnb { padding:5px 1px 5px 7px; width:110px; }
#lnb li { list-style:none; padding-bottom:0px; }
#lnb li a { position:relative; padding:6px 0px 3px 3px; width:103px; display:block; border-bottom:1px solid #f0f0f0; color:#000000; text-decoration:none; z-index:99; }
#lnb li a:hover,
#lnb li a:focus { font-weight:bold; color:#000000; }
#lnb li.on a { font-weight:bold; color:#000000; }
#lnb li.on a:hover,
#lnb li.on a:focus { font-weight:bold; }
#lnb li ul { position:relative; display:block; width:95px; padding:3px 0px 3px 5px; border-bottom:0px solid #ffffff; overflow:hidden; }
#lnb li.on ul { display:block; }
#lnb li ul li { position:relative; border-bottom:1px solid #f2f2f2; top:-1px; }
#lnb li ul li a { padding:3px 0px 3px 5px; width:95px; color:#818181 !important; border:none; background:none !important; border:none !important; }
#lnb li ul li a:hover,
#lnb li ul li a:focus { font-weight:bold !important; color:#de4332 !important;}
#lnb li.on ul li.on a { color:#ff1a00 !important; font-weight:bold; !important; background:none no-repeat 95px center !important;}#columnLeft .leftbox { clear: both; border:1px #e0e0e0 solid; padding:4px; background:#ffffff; }
#columnLeft .mask { clear:both; width:120px; height:5px; background:#ffffff; display:block; }/* Site Layout - #columnCenter */
#columnMain { float: left; width: 640px; margin:0px 9px 0px 10px; border:0px solid #e0e0e0; }
#visualArea { width: 640px; background:#f5f5f5; position:relative; left:-10px; margin-right:-10px;}
#content { width:100%; overflow:hidden; }/* Site Layout - #columnRight */
#columnRight { float: right; width: 200px; overflow:hidden; }
#columnRight .loginbox {width:200px; padding-bottom:5px; background:#FFFFFF; }
#columnRight .rightbox { clear:both; border-top:1px solid #e0e0e0; padding:5px 5px 0px 5px;}
#columnRight .mask { width:200px; height:5px; background:#ffffff; display:block; clear:both;}/* Site Layout - Footer */
#footer { clear:both; border-top:3px solid #f4f4f4; text-align:center; padding:1em 0 2em; list-style:none; color:#b5b5b5; }
#footer a { text-decoration:none; color:#999999;}
#footer li { color:#000000; line-height:160%;}
#footer li a { text-decoration:none; color:#999999; font:.9em "돋움", Dotum, "굴림", Gulim, AppleGothic, Sans-serif; }
#footer li.bottom_menu { display:inline; padding:0 .6em 0 1em; background:url(../images/default/vrType1.gif) no-repeat left center; }/* Default Skin - End */
-
느까끼
2008.12.06 10:54
여백과 중앙 컨텐츠 부분만 연관지어 조절할때, 빨간부분의 숫치를 조절해보세요.
@charset "utf-8";
/*
Designed by Yun Seong-hwan
*//* Default Skin - Start */
#selectLang { margin:0; padding:0; }
#gnb { margin:0; padding:0; }
.gnb_sub { margin:0; padding:0; }
#lnb { margin:0; padding:0; }
#lnb ul { margin:0; padding:0; }
#isSearch { margin:0; padding:0; }
#isSearch ul { margin:0; padding:0; }
#footer { margin:0; padding:0; }/* Site Layout - Body Wrap */
body { background:#FFFFFF }
#bodyWrap { width:980px; margin:3.5em auto 0 auto; }/* Site Layout - Logo */
#top { position:relative; width:980px; height:55px; }
#top h1 { position:absolute; margin:0; top:10px; left:0px;}
#top .quickmenu { position:absolute; margin:0; top:0px; right:0px; width:290px; height:30px; }
#top .join { position:absolute; margin:0; top:17px; right:0px; height:40px; overflow:hidden; white-space:nowrap; }/* Site Layout - Header */
#header { position:relative; width:980px; height:65px; background:url(../images/default/bgHeader.jpg) no-repeat right top; margin-bottom:10px; z-index:99;}
#header .news { position:absolute; top:35px; right:10px; width:300px; height:20px; text-align: right;}#it_search_form { position:absolute; top:8px; right:10px;}
#it_search_form .input { border:1px solid #bc4032; height:17px; width:120px; color:#888888; font-size:.9em;}
#it_search_form .submit_button { width:1px; height:1px; visibility:hidden; }/* 상단주메뉴 밑 서브메뉴 처리 부분 */
#gnb { position:absolute; top:0px; height:34px; left:10px; overflow:hidden; white-space:nowrap; margin-bottom:0px;}
#gnb li { float:left; list-style:none; padding-left:2px; position:relative; left:-2px; white-space:nowrap;}
#gnb li a { display:block; float:left; padding:13px 0px 0 0px; width:90px; height:25px; color:#666666; white-space:nowrap; text-align:center; font-size:1.12em; font-weight:bold; text-decoration:none; }
#gnb li a:hover,
#gnb li a:focus { color:#000000;}
#gnb li.on a { font-weight:bold; color:#ffffff; background:url(../images/default/bgGnbOn.gif) no-repeat center top;}/* 메인 2차메뉴 css */
.gnb_sub { position:absolute; top:37px; left:30px; height:24px; overflow:hidden; white-space:nowrap; }
.gnb_sub li { float:left; list-style:none; background:url(../images/default/sub_part.gif) no-repeat left center; padding-left:2px; position:relative; left:-2px; white-space:nowrap;}
.gnb_sub li a { display:block; float:left; padding:6px 15px 0 15px; height:18px; color:#ffffcc; font-weight:bold; white-space:nowrap; text-decoration:none; font-family:"돋움", Dotum, "굴림", Gulim, AppleGothic, Sans-serif;}
.gnb_sub li a:hover,
.gnb_sub li a:focus { color:yellow; }
.gnb_sub li.on a, .gnbin li.on a:hover { font-weight:bold; color:yellow; background:url(../images/default/arrow_3.gif) no-repeat center bottom; }#isSearch { position:absolute; top:8px; right:10px; width:216px; text-align:right;}
#isSearch .searchOrder { display:none;}
#isSearch .checked { position:absolute; left:0; top:0; text-align:left; display:block; padding:5px 0 0 5px; width:64px; height:14px; background:url(../images/default/bgSearchTerm.gif) no-repeat; font:11px "돋움", Dotum, "굴림", Gulim, AppleGothic, Sans-serif; color:#000000; line-height:normal;}
*:first-child+html #isSearch .checked { top:1px; }
#isSearch ul { display:none; position:absolute; left:0; top:18px; padding:2px 0 3px 0; text-align:left; border:1px solid #919898; background:#ffffff;}
#isSearch ul li { width:67px; height:18px; list-style:none; }
#isSearch ul li input { display:none;}
#isSearch ul li label { display:block; padding:4px 0 0 4px; width:63px; height:15px; font:11px "돋움", Dotum, "굴림", Gulim, AppleGothic, Sans-serif; color:#000000;}
#isSearch ul li label.on { background:#ffffff; }
#isSearch ul li label:hover,
#isSearch ul li label:focus { background:#ffffff;}
#isSearch .inputText { vertical-align:middle; position:relative; top:0; _top:-1px; left:1px; padding:3px 3px 1px 3px; width:94px; height:13px; color:#000000; border:1px solid #8E8E8D; background-color:#ffffff; }
#isSearch .inputText:hover,
#isSearch .inputText:focus { border:1px solid #B0B0AF; background-color:#ffffff; }
*:first-child+html body#default #isSearch .inputText { position:relative; top:-1px;}
#isSearch .submit { vertical-align:middle; _position:relative; _top:-1px;}
*:first-child+html body#default #isSearch .submit { position:relative; top:-1px;}/* Site Layout - Content Body */
#contentBody { position:relative; width:980px; padding-bottom:10px; overflow:hidden; background:url(../images/default/bgContentBody.gif) repeat-y left top; border-bottom:1px solid #dddddd;}/* Site Layout - #columnLeft */
#columnLeft { position:relative; float: left; width: 120px; }
#sidenav { position:relative; clear:both; width: 120px; background:#f4f4f4 url(../images/default/submenu_middle.gif) repeat; display:block; }
#sidenav .sub_title { background:url(../images/default/sub_title_bg.gif) no-repeat; height:45px; }
#sidenav .sub_title h1 { margin:0; padding-top:15px; width:120px; text-align:center; font-weight:bold; font-family:Tahoma; font-size:16px; color:#ffffff; }
#sidenav .sub_top { background:#ffffff url(../images/default/submenu_top.gif) no-repeat; height:4px; overflow:hidden;}
#sidenav .sub_bottom { background:#ffffff url(../images/default/submenu_bottom.gif) no-repeat; height:4px; overflow:hidden;}#lnb { padding:5px 1px 5px 7px; width:110px; }
#lnb li { list-style:none; padding-bottom:0px; }
#lnb li a { position:relative; padding:6px 0px 3px 3px; width:103px; display:block; border-bottom:1px solid #f0f0f0; color:#000000; text-decoration:none; z-index:99; }
#lnb li a:hover,
#lnb li a:focus { font-weight:bold; color:#000000; }
#lnb li.on a { font-weight:bold; color:#000000; }
#lnb li.on a:hover,
#lnb li.on a:focus { font-weight:bold; }
#lnb li ul { position:relative; display:block; width:95px; padding:3px 0px 3px 5px; border-bottom:0px solid #ffffff; overflow:hidden; }
#lnb li.on ul { display:block; }
#lnb li ul li { position:relative; border-bottom:1px solid #f2f2f2; top:-1px; }
#lnb li ul li a { padding:3px 0px 3px 5px; width:95px; color:#818181 !important; border:none; background:none !important; border:none !important; }
#lnb li ul li a:hover,
#lnb li ul li a:focus { font-weight:bold !important; color:#de4332 !important;}
#lnb li.on ul li.on a { color:#ff1a00 !important; font-weight:bold; !important; background:none no-repeat 95px center !important;}#columnLeft .leftbox { clear: both; border:1px #e0e0e0 solid; padding:4px; background:#ffffff; }
#columnLeft .mask { clear:both; width:120px; height:5px; background:#ffffff; display:block; }/* Site Layout - #columnCenter */
#columnMain { float: left; width: 640px; margin:0px 9px 0px 10px; border:0px solid #e0e0e0; }
#visualArea { width: 640px; background:#f5f5f5; position:relative; left:-10px; margin-right:-10px;}
#content { width:100%; overflow:hidden; }/* Site Layout - #columnRight */
#columnRight { float: right; width: 200px; overflow:hidden; }
#columnRight .loginbox {width:200px; padding-bottom:5px; background:#FFFFFF; }
#columnRight .rightbox { clear:both; border-top:1px solid #e0e0e0; padding:5px 5px 0px 5px;}
#columnRight .mask { width:200px; height:5px; background:#ffffff; display:block; clear:both;}/* Site Layout - Footer */
#footer { clear:both; border-top:3px solid #f4f4f4; text-align:center; padding:1em 0 2em; list-style:none; color:#b5b5b5; }
#footer a { text-decoration:none; color:#999999;}
#footer li { color:#000000; line-height:160%;}
#footer li a { text-decoration:none; color:#999999; font:.9em "돋움", Dotum, "굴림", Gulim, AppleGothic, Sans-serif; }
#footer li.bottom_menu { display:inline; padding:0 .6em 0 1em; background:url(../images/default/vrType1.gif) no-repeat left center; }/* Default Skin - End */
-
해커다
2008.12.06 10:58
헉 답이 엄청 빠르시네요 ㅋㅋ,
한바퀴 돌고 오니 이미 완벽한 답을 ㅋㅋ,,, -
111291
2008.12.06 11:30
굿 ~
해결입니다
느까끼 넘 감사합니다
행복하세요 ~
일일이 말하자면,,
메뉴 배경이미지를 필요한 넓이만큼 수정
레이아웃 css에 모든 현재 넓이를 수정하려는 넓이만큼 수정,
css에서 본문부분 앞중뒤 부분 넓이를 적당하게 수정
그럼 비슷할꺼에요,~
근데 그렇게 넓게 수정하는건 무리라구 보네요 ,,,