리자

가변 위치에 배너 붙이기

 
 
<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년 전 조회 595
14년 전 조회 2,569
14년 전 조회 1,363
14년 전 조회 1,784
14년 전 조회 1,006
14년 전 조회 785
14년 전 조회 923
14년 전 조회 995
14년 전 조회 1,878
14년 전 조회 3,113
14년 전 조회 2,165
14년 전 조회 1,739
14년 전 조회 539
14년 전 조회 1,778
14년 전 조회 3,007
14년 전 조회 1,682
14년 전 조회 830
14년 전 조회 1,111
14년 전 조회 2,243
14년 전 조회 1,399
14년 전 조회 830
14년 전 조회 1,646
14년 전 조회 1,277
🐛 버그신고