
자유게시판 질문답변 테이블을 div로 묶어서 width를 33%로, margin-left 2%로 줘서 테이블 사이에 간격이 있습니다. 그리고 div 안에 영상을 넣었습니다.
문제는 질문답변이랑 소개영상 사이에 여백을 줘도 여백이 생기지않네요ㅠㅠㅠ
|
답변 3개 / 댓글 1개
채택된 답변
+20 포인트
SKPLAN
2018-08-24 (금) 16:01:27
프레임에 style로 margin-left값을 줘보세요.
Copy
<iframe width="370" height="220" src="https://www.youtube.com/embed/l9R6pxorvrU" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen style="margin-left:10px;"></iframe>
2018-08-24 (금) 15:49:04
해당 페이지 소스를 봐야 정확히 말씀 드릴 수 있을것 같습니다.
스크린샷만으로는 알 수가 없네요
답변에 대한 댓글 1개
2018-08-24 (금) 15:53:00
2018-08-24 (금) 15:49:00
영상 width를 줄여주세요.
답변을 작성하려면 로그인이 필요합니다.
<!-- 최신글 시작 { -->
<?php
// 최신글
$sql = " select bo_table
from `{$g5['board_table']}` a left join `{$g5['group_table']}` b on (a.gr_id=b.gr_id)
where a.bo_device <> 'mobile' ";
if(!$is_admin)
$sql .= " and a.bo_use_cert = '' ";
$sql .= " and a.bo_table not in ('notice', 'gallery') "; //공지사항과 갤러리 게시판은 제외
$sql .= " order by b.gr_order, a.bo_order ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
if ($i%2==1) $lt_style = "margin-left:2%";
else $lt_style = "";
?>
<div style="float:left;<?php echo $lt_style ?>" class="lt_wr">
<?php
echo latest('theme/basic', $row['bo_table'], 6, 24);
?>
</div>
<?php
}
?>
<iframe width="370" height="220" src="https://www.youtube.com/embed/l9R6pxorvrU" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
</div>