• 24-03-2024, 14:03:45
    #1
    <style type="text/css">
    .twitch-container {
      position: relative;
      overflow: hidden;
      width: 50%;
      padding-top: 56.25%;
    }
        .twitch-container2 {
      position: relative;
      overflow: hidden;
      width: 50%;
      padding-top: 56.25%;
    }
        
    .twitch-responsive-iframe {
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      width: 100%;
      height: 100%;
    }
        
    </style>
    <div id="twitch-cont">
        <div class="twitch-container"><iframe class="twitch-responsive-iframe" src="https://player.twitch.tv/?channel=kanal&parent=.com"></iframe></div>
    <div class="twitch-container2"><iframe class="twitch-responsive-iframe" src="https://www.twitch.tv/embed/kanal/chat?parent=.com">
        </iframe></div>
    </div>
    Amacım responsive olarak hem twitch hem de twitch chatini embed etmek. Yardımcı olur musunuz?
  • 24-03-2024, 14:05:17
    #2
    İkisini aynı div e alın örneğin classı second olsun second ın css koduna display:flex yazın yan yana gelir
  • 24-03-2024, 14:08:24
    #3
    Aden adlı üyeden alıntı: mesajı görüntüle
    İkisini aynı div e alın örneğin classı second olsun second ın css koduna display:flex yazın yan yana gelir
    Olmadı hocam, bütün sayfa kaydı embed için widget kullanıyorum.
  • 24-03-2024, 14:11:12
    #4
    #twitch-cont  {
         display: flex;
         align-items: center
    }
  • 24-03-2024, 14:16:07
    #5
    Wallace adlı üyeden alıntı: mesajı görüntüle
    <style type="text/css">
    .twitch-container {
      position: relative;
      overflow: hidden;
      width: 50%;
      padding-top: 56.25%;
    }
        .twitch-container2 {
      position: relative;
      overflow: hidden;
      width: 50%;
      padding-top: 56.25%;
    }
        
    .twitch-responsive-iframe {
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      width: 100%;
      height: 100%;
    }
        
    </style>
    <div id="twitch-cont">
        <div class="twitch-container"><iframe class="twitch-responsive-iframe" src="https://player.twitch.tv/?channel=kanal&parent=.com"></iframe></div>
    <div class="twitch-container2"><iframe class="twitch-responsive-iframe" src="https://www.twitch.tv/embed/kanal/chat?parent=.com">
        </iframe></div>
    </div>
    Amacım responsive olarak hem twitch hem de twitch chatini embed etmek. Yardımcı olur musunuz?
    Dener misin ;



    <style type="text/css">
    .twitch-wrapper {
    display: flex;
    }

    .twitch-container, .twitch-container2 {
    position: relative;
    overflow: hidden;
    width: 50%;
    padding-top: 56.25%;

    flex-shrink: 0;
    }

    .twitch-responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    }
    </style>
    <div class="twitch-wrapper">
    <div class="twitch-container">
    <iframe class="twitch-responsive-iframe" src="https://player.twitch.tv/?channel=kanal&parent=.com"></iframe>
    </div>
    <div class="twitch-container2">
    <iframe class="twitch-responsive-iframe" src="https://www.twitch.tv/embed/kanal/chat?parent=.com"></iframe>
    </div>
    </div>
  • 24-03-2024, 14:17:10
    #6
    https://chat.openai.com/ kodunuzu atıp ne istediğinizi yazarsanız size burdan daha fazla yardımı olacaktır.