리자

가변 위치에 배너 붙이기

 
 
<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,358
14년 전 조회 3,833
14년 전 조회 593
14년 전 조회 2,567
14년 전 조회 1,362
14년 전 조회 1,782
14년 전 조회 1,005
14년 전 조회 783
14년 전 조회 922
14년 전 조회 993
14년 전 조회 1,876
14년 전 조회 3,110
14년 전 조회 2,164
14년 전 조회 1,738
14년 전 조회 536
14년 전 조회 1,775
14년 전 조회 3,005
14년 전 조회 1,680
14년 전 조회 829
14년 전 조회 1,109
14년 전 조회 2,242
14년 전 조회 1,397
14년 전 조회 828
14년 전 조회 1,644
14년 전 조회 1,274
🐛 버그신고