테스트 사이트 - 개발 중인 베타 버전입니다

가변 위치에 배너 붙이기

 
 
<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 에 %를 사용하는 방법도 있군요

게시글 목록

번호 제목
1411
1410
1409
1407
1406
1404
1403
1399
1394
1391
1387
1385
1384
1382
1380
1378
1376
1374
1371
1368
1364
1360
1357
1356
1349
1347
1341
1339
1336
1334