채택완료

쇼핑몰 중간 유튜브 재생 창 정렬 질문

2019-01-09 (수) 15:22:34 3,929

    <iframe width="550" height="400" src="https://www.youtube.com/embed/V1s0ZuWVed4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        
    <iframe width="550" height="400" src="https://www.youtube.com/embed/1vAdXinH5ck" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

PC쇼핑몰에 위 소스만 입력하면 유튜브 동영상재생부분이 한쪽으로 치우쳐 나옵니다.3667124672_1547014894.8433.png

가운데 센터로 나오게 하는 방법좀 부탁드립니다.

고수님들 답변 부탁드립니다.

답변 2개 / 댓글 2개

채택된 답변
+20 포인트

<div style="display:flex;justify-content:center">


  <iframe width="550" height="400" src="https://www.youtube.com/embed/V1s0ZuWVed4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen style='margin-right:15px'></iframe>
    <iframe width="550" height="400" src="https://www.youtube.com/embed/1vAdXinH5ck" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  </div>

답변에 대한 댓글 1개

답변 감사드립니다.

답변주신 소스로 해결 되었습니다.
다시한번 감사드립니다.

  <div style="display:flex;justify-content:center">


  <iframe width="550" height="400" src="https://www.youtube.com/embed/V1s0ZuWVed4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    <iframe width="550" height="400" src="https://www.youtube.com/embed/1vAdXinH5ck" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  </div>

답변에 대한 댓글 1개

답변 감사드립니다.

유튜브 두개 동영상이 너무 바짝 붙이있는데 살짝 띄어서 보이게 하려면 어떻게 해야 할까요?

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