리자

가변 위치에 배너 붙이기

 
 
<body>
<table width=300 border=1 align=center><tr><td align=center>
    <div>table width 300px</div>
    <div>image width 110px</div>
</td></tr></table>
 
<div style='position:absolute; top:50px; left:50%; z-index:-1;'>
    <div style='position:relative; top:0; left:150px;'>
        <img src='logo.gif'>
    </div>
</div>
 
<div style='position:absolute; top:50px; left:50%; z-index:-1;'>
    <div style='position:relative; top:0; left:-260px;'>
        <img src='logo.gif'>
    </div>
</div>
</body>

|

댓글 1개

방법이 아주 좋네요...
absolute 에 %를 사용하는 방법도 있군요
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 1,368
14년 전 조회 3,842
14년 전 조회 602
14년 전 조회 2,574
14년 전 조회 1,376
14년 전 조회 1,796
14년 전 조회 1,016
14년 전 조회 794
14년 전 조회 931
14년 전 조회 1,006
14년 전 조회 1,891
14년 전 조회 3,121
14년 전 조회 2,177
14년 전 조회 1,748
14년 전 조회 547
14년 전 조회 1,788
14년 전 조회 3,018
14년 전 조회 1,696
14년 전 조회 840
14년 전 조회 1,121
14년 전 조회 2,260
14년 전 조회 1,412
14년 전 조회 842
14년 전 조회 1,660
14년 전 조회 1,287