채택완료

글자 위치

게시판 리스트에 이미지를 올리면 이미지가 출력되고 이미지삽입하고 글을 쓴내용이

박스 사이즈가 width 300이라고 하면 300안에서 차면 밑으로 내려가야하는데

박스를 벗어나 옆으로 나가 버려요....

padding 값을 줘도 안먹고 width값을 지정해도 안먹네요...

Copy
<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개 / 댓글 2개

채택된 답변
+20 포인트

참고로 이해가 잘 안되지만... 혹시나...

 <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>

이렇게 해보세요~ 

답변에 대한 댓글 2개

감사합니다^^
<a href="<?php echo $list[$i]['href']?>" style="max-width:<?php echo $board
['bo_gallery_width'];?>px; word-breadk:break-all;" class="content">
<?php echo nl2br(mb_strimwidth($list[$i]['wr_content'],0,40,'...','utf-8'));?>
</a>
이렇게 word-breadk 이렇게 했는되도 안되네요

답변을 작성하려면 로그인이 필요합니다.