리자

가변 위치에 배너 붙이기

 
 
<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,391
14년 전 조회 3,867
14년 전 조회 622
14년 전 조회 2,600
14년 전 조회 1,397
14년 전 조회 1,817
14년 전 조회 1,033
14년 전 조회 817
14년 전 조회 949
14년 전 조회 1,022
14년 전 조회 1,908
14년 전 조회 3,141
14년 전 조회 2,191
14년 전 조회 1,770
14년 전 조회 566
14년 전 조회 1,804
14년 전 조회 3,041
14년 전 조회 1,717
14년 전 조회 855
14년 전 조회 1,135
14년 전 조회 2,273
14년 전 조회 1,427
14년 전 조회 857
14년 전 조회 1,675
14년 전 조회 1,299