로고를 안움직이게 하고싶은데..

저렇게 로고부분이 있는데헤더부분을 fixed로 고정시켜서 로고는 마진 패딩값주면서 저위치에 맞쳐두니
창을 작게하거나 크게하면 위치가 틀려져서.. 딱고정시키고싶은데
어떻게해야할지 모르겠네요

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdhtml xmlns=http://www.w3.org/1999/xhtmlload target=layout.css / style type=text/cssul {list-style-type:none;} /stylediv id=wrap style=width:100%div id=header div class=logo a href=주소 title=img src=로고주소 width=288px height=70px //a/div /div div id=container style=width:1100px div id=sidemenu iframe width=200 height=300 src=메뉴 border=0 scrolling=no frameborder=no/iframe /li /ul /div div id=content style=width:;background-color:#FFFFFF;float:left;{$content}/div /divdiv id=footer style=background-color:#fff;clear:both;height:60px;img src=foot.jpg width=247 height=47px align=right class=apzlogin_btn style=cursor:pointer//div/divimg alt= class=zbxe_widget_output widget=login_info skin=apprz_simple colorset=gray/

-----------------------------------------------------------------------------------------------------------

html {height:100%; overflow-y:scroll;}
body{margin:0;padding:0;}
#wrap { background:#fff height:100%}
#header {height:85px;width:100%;background-color:#535353;vertical-align: top;top: 0;position: fixed; z-index:2;}
#container {width:1100px;margin:0 auto;margin-top:20px;}

#sidemenu {float:left;width:170px;min-height:;padding-top:45px;position:fixed;margin-left:-10px;}
#content {width:920px;padding-top:72px;margin-left:185px;z-index: 1;position: relative;}
#footer {width:1100px;margin-left:auto;margin-right:auto;align=right;}
.logo {margin:-0; padding-lefting-left:410px;padding-top:15px;}
.apzlogin_btn {width=247 height=47px}

댓글 6

  • 초코우유 2026.08.13

    포지션으로 우찌하나용..

  • 하련솔 2026.08.13

    로고도 포지션으로 잡으세요

  • 움찬 2026.08.13

    이리저리 만들다가 빼고그래서 미쳐못뺀것들이있어요 ㅠ 윽 ㅋ
    헤더 전체를 고정해버려서...패딩이랑 마진으로만 밀어서그런지 창을줄이고 키면 위치가 중앙에고 다시 최대화시키면 원래위치로오고...그러네요..

  • 마루나 2026.08.13

    logo에 마진이 왜 -0인지 잘 모르겠어요. 그리고 #header에 vertical-align: top; 은 빼시면 될것같구요.

    그냥 하시는대로라면 로고를 위와 옆의 패딩?으로 밀어도 문제가 없어야 정상이거든요.

    그리고 fixed에 좌표값이 없어요. header에 ㅠ_ㅠ

    이것들을 다 고치고 해도 안된다면...

    logo에 position:absolute; 를 선언하시고 left, top 값으로 위치를 고정해주시면 될것같네요.

    헐 그리고

  • 매미꽃 2026.08.13

    코드올렸네용 ㄷㄷ; 막만든거라서 ...

  • 두동 2026.08.13

    로고를 어떤식으로 저 위치에 맞추어 두셨나요?
    창을 작게하거나 크게 한다고 해서 위치가 달라지진 않을텐데요 ;ㅇ;코드를 보고싶네요

프로그램 개발일반 다른 글

목록