글자 위치
본문
게시판 리스트에 이미지를 올리면 이미지가 출력되고 이미지삽입하고 글을 쓴내용이
박스 사이즈가 width 300이라고 하면 300안에서 차면 밑으로 내려가야하는데
박스를 벗어나 옆으로 나가 버려요....
padding 값을 줘도 안먹고 width값을 지정해도 안먹네요...
<a href="<?php echo $list[$i]['href']?>" style="width:<?php echo $board['bo_gallery_width'];?>px" class="content">
<?php echo nl2br(mb_strimwidth($list[$i]['wr_content'],0,60,'...','utf-8'));?>
</a>
css
.tiles-wrap a {
color: #888;
text-align: center;
/* display: table-cell; */
width: auto;
height: 200px;
font-size: 1.5em;
font-weight: bold;
text-decoration: none;
}
.tile-loading:after {
display: block;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
content: "Loading\2026";
padding-top: 20px;
color: #999;
}
답변 2
참고로 이해가 잘 안되지만... 혹시나...
<a href="<?php echo $list[$i]['href']?>" style="max-width:<?php echo $board['bo_gallery_width'];?>px" class="content">
<?php echo nl2br(mb_strimwidth($list[$i]['wr_content'],0,60,'...','utf-8'));?>
</a>
이렇게 해보세요~
답변을 작성하시기 전에 로그인 해주세요.