div 해상도 관계없이 중간정렬 하고 싶어요 ㅠㅠ
아래 소스는 이렇습니다!
현재는 left:0 으로 해서 무조건 인터넷창 제일 왼쪽으로 정렬이 되는데요.
해상도 상관없이 중간정렬을 하고 싶은데 어떻게 해야될까요.
아무리 해도 안되요 ㅠㅠ
<div id="allmn">
<div id="ain">
<div class="cbtn">
<a href="#;" onClick="document.getElementById('allmn').style.display='none';return false;"</a>
</div>
<table cellspacing="0" class="alltb" align="center">
<colgroup><col width="130px"></colgroup>
<tbody align="center">
<tr>
<td>
<div class="t1"><img src="../title_1.gif"></div>
<ul class="su">
<li><img src="../images/main/sitemap/title_1_1.gif"></li>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
===========================================
<css>
#allmn {display:none;position:absolute;left:0;top:10;width:100%;height:450px;padding-top:30px;margin-top:58px;background:#ffffff url('../images/main/sitemap/allmbg.jpg') no-repeat left top;z-index:1000000; }/
#allmn .alltb {height:100%;margin:0px auto;text-align:center;overflow:hidden;}
#allmn .alltb td {vertical-align:top;}
#allmn .alltb .t1 {height:30px;text-align:left;}
#allmn .alltb .t1 img {margin-left:16px;}
#allmn .alltb .su {clear:both;display:block;width:125px;margin:0px auto;padding-bottom:3px;text-align:left;}
#allmn .alltb .su li {padding-bottom:5px;}
#allmn .alltb .sin {padding-left:5px;}
#allmn .alltb .sin td {height:15px;}
#allmn .alltb .su2 {clear:both;padding-top:50px;}
#allmn .alltb .su2 li img {#margin-bottom:-1px;}
#allmn .alltb .t2 {height:15px;padding-top:25px;text-align:left;}
#allmn .alltb .t2 img {margin-left:12px;}
#allmn #ain {position:relative;width:100%;}
#allmn .cbtn {position:absolute;right:0;top:0;margin-right:20px;margin-top:-10px;}
댓글 8개
적용하실 div속성을 요렇게요.
주시면 됩니다.
저 그리고 포인트 1만점만 주시면 안되나요 ㅠㅠ
포인트가 없어서 글이 안써짐요 젭알~~~
이글 참고해보세요.
$(window).resize(function(){
$('#allmn').css({
position:'absolute',
left: ($(window).width()
- $('#allmn').outerWidth())/2,
top: ($(window).height()
- $('#allmn').outerHeight())/2
});
});
$(window).resize();
});
jquery로 간단히
게시판 목록
토크
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3510 | 7년 전 | 2780 | ||
| 3509 | 8년 전 | 3598 | ||
| 3508 |
좋은사람우유
|
8년 전 | 4878 | |
| 3507 | 8년 전 | 5056 | ||
| 3506 | 8년 전 | 3439 | ||
| 3505 | 8년 전 | 3011 | ||
| 3504 | 8년 전 | 4028 | ||
| 3503 | 8년 전 | 3782 | ||
| 3502 | 8년 전 | 4235 | ||
| 3501 | 8년 전 | 2971 | ||
| 3500 |
|
8년 전 | 2752 | |
| 3499 |
|
8년 전 | 3194 | |
| 3498 |
|
8년 전 | 2783 | |
| 3497 | 8년 전 | 2950 | ||
| 3496 | 8년 전 | 2996 | ||
| 3495 |
|
8년 전 | 1325 | |
| 3494 |
|
8년 전 | 2432 | |
| 3493 | 8년 전 | 2085 | ||
| 3492 |
체리맛쿠키
|
8년 전 | 2556 | |
| 3491 |
제임스딘님
|
8년 전 | 1872 | |
| 3490 | 8년 전 | 1718 | ||
| 3489 |
tiadk
|
8년 전 | 3278 | |
| 3488 |
동팔이22
|
8년 전 | 2216 | |
| 3487 |
초등학교학생
|
8년 전 | 1820 | |
| 3486 |
|
8년 전 | 3349 | |
| 3485 | 8년 전 | 2468 | ||
| 3484 | 8년 전 | 2614 | ||
| 3483 | 8년 전 | 4557 | ||
| 3482 | 8년 전 | 9171 | ||
| 3481 | 8년 전 | 3676 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기