Content types

Select your language

  • Deutsch
  • English
Content types
Stefan J. Truckers Homepage
  • Projects Zeigbares
  • 3D Printing 3D Printing FDM / FFF
      • Back
      • Guides & Help
      • Facts & Tips
      • FDM Design Guide
      • FDM 3D Printing Help
      • STL. Collection
      • Back
      • Purchase Advice
      • Filament Finder
          • Back
          • - All -
          • ABS
          • ASA
          • CPE
          • HIPS
          • PA
          • PC
          • PET
          • PETg
          • PCTG
          • PEEK
          • PLA
          • PP
          • PVB
          • Composite
          • Blends
      • 3D Printer 3D Printer
      • Components
          • Back
          • Extruder Extruder
          • Mainboards
      • FDM Firmware
          • Back
          • Klipper Klipper
          • RepRap Firmware
          • Marlin Firmware Marlin Firmware
          • Repetier Firmware Repetier Firmware
          • G-Codes & Commands
  • Tech Hard & Software
      • Back
      • Photo & Video
          • Back
          • Tips
          • Equipment
          • Gallery
      • Personal Computer
          • Back
          • Security
          • Programs
          • Operating System Tips
          • Artificial Intelligence
          • Web
              • Back
              • Joomla CMS
              • Scripts & Codes
              • Optimization
              • Soziale Medien
  • Craft Corner
      • Back
      • Production
      • RC-Sport Funkgesteuert

      • Back
      • Pure Fun
      • Laser Gravieren / Schneiden
      • CNC Fräsen
  • Vita everyday life
      • Back
      • Living Space
      • Home & Living
      • Real estate search
      • Balcony & Garden
      • Back
      • Wellbeeing


  • About About Stefan
      • Back
      • Career
      • Portfolio (2)
      • Gönne mir was (2)
  • Unterstütze Projekt & Mich
  • Tech
  • Personal Computer
  • Web
  • Joomla CMS
  • Responsive iFrame

  • Photo & Video
      • Tips
      • Equipment
      • Gallery
  • Personal Computer
      • Security
      • Programs
      • Operating System Tips
      • Artificial Intelligence
      • Web
          • Joomla CMS
          • Scripts & Codes
          • Optimization
          • Soziale Medien
Werbung

Responsive iFrame

created on
  Sunday, 30 April 2023
edited on
  Monday, 29 December 2025
by
  Stefan Trucker  

Nowadays, there is no longer any website that is not responsive, i.e. that adapts to the display of the end device to ensure an optimal user experience. Unfortunately, many portals such as YouTube and Vimeo still use i-frames to embed their content on other sites. However, with a little CSS trick, the content can be customised as desired.

The instructions are based on a YouTube video, as I believe this content is used very frequently.

Enter this code with the YouTube video link as HTML source code in your article by either clicking the Show source code button or turning off the editor.

<div class="responsive">
    <iframe width="420" height="315" src="http://www.youtube.com/....." frameborder="0" allowfullscreen></iframe>
</div>
Code in Ablage kopieren

Insert this code into the Custom.css of your template CSS:

.responsive{
    overflow:hidden;
    padding-bottom:56.25%;
    position:relative;
    height:0;
}
.responsive iframe{
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
}
Code in Ablage kopieren

Done! Now your content will be displayed at the specified size, unless the screen is too small, in which case the content will be scaled to the width of the screen.

  • Joomla CMS Joomla Erweiterungen um die Sicherheit zu erhöhen
    4 / 8 Gantry 5 fixed column width
FaLang translation system by Faboba
Werbung
  • Projects Zeigbares
  • 3D Printing 3D Printing FDM / FFF
      • Back
      • Guides & Help
      • Facts & Tips
      • FDM Design Guide
      • FDM 3D Printing Help
      • STL. Collection
      • Back
      • Purchase Advice
      • Filament Finder
          • Back
          • - All -
          • ABS
          • ASA
          • CPE
          • HIPS
          • PA
          • PC
          • PET
          • PETg
          • PCTG
          • PEEK
          • PLA
          • PP
          • PVB
          • Composite
          • Blends
      • 3D Printer 3D Printer
      • Components
          • Back
          • Extruder Extruder
          • Mainboards
      • FDM Firmware
          • Back
          • Klipper Klipper
          • RepRap Firmware
          • Marlin Firmware Marlin Firmware
          • Repetier Firmware Repetier Firmware
          • G-Codes & Commands
  • Tech Hard & Software
      • Back
      • Photo & Video
          • Back
          • Tips
          • Equipment
          • Gallery
      • Personal Computer
          • Back
          • Security
          • Programs
          • Operating System Tips
          • Artificial Intelligence
          • Web
              • Back
              • Joomla CMS
              • Scripts & Codes
              • Optimization
              • Soziale Medien
  • Craft Corner
      • Back
      • Production
      • RC-Sport Funkgesteuert

      • Back
      • Pure Fun
      • Laser Gravieren / Schneiden
      • CNC Fräsen
  • Vita everyday life
      • Back
      • Living Space
      • Home & Living
      • Real estate search
      • Balcony & Garden
      • Back
      • Wellbeeing


  • About About Stefan
      • Back
      • Career
      • Portfolio (2)
      • Gönne mir was (2)
  • Unterstütze Projekt & Mich
  • Impressum
  • Datenschutzerklärung
  • Anmeldung
      • Back
      • Registrierung
  • Sitemap
 Design & Implementation by Stefan J. Trucker

Urheberrecht

Die durch den Seitenbetreiber erstellten Inhalte und Werke auf dieser Website unterliegen dem österreichischen Urheberrecht. Beiträge Dritter sind als solche gekennzeichnet.
Die Vervielfältigung, Bearbeitung, Verbreitung und jede Art der Verwertung außerhalb der Grenzen des Urheberrechts bedürfen der schriftlichen Zustimmung des jeweiligen Autors bzw. Erstellers.
Downloads und Kopien dieser Seite sind nur für den privaten, nicht kommerziellen Gebrauch gestattet.

Sämtliche Bilder, Texte und Videos auf dieser Seite wurden vom Betreiber selbst erstellt, sofern nicht anders angegeben.

  • Joomla
  • Astroid

Werbung

3D Jake