ich stehe gerade total auf dem Schlauch.
Möchte ein Youtube-Video reponsive einbinden, aber meine CSS werden nicht genommen.
Die Anweisungen stehen in der CSS-Datei, die auch geladen wird.
Code: Alles auswählen
/*youtube responsive*/
.resp-video {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px; 
	height: 0; 
	overflow: hidden;
}
 
.resp-video iframe,
.resp-video object,
.resp-video embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}Code: Alles auswählen
<div class="resp-video">
<iframe width="860" height="484" src="https://www.youtube-nocookie.com/embed/XXX?rel=0" frameborder="0" allowfullscreen=""></iframe>
</div>Ich kann auch keine Script-Fehler entdecken. Hat jemand eine Ahnung woran das liegen könnte?
LG farina