html - Height and weight attributes being ignored by css -


we updates our sites design, can't figure out why css ignoring height , width?

for instance, youtube embedded videos don't stay @ 625x352

<iframe width="625" height="352" src="https://www.youtube.com/embed/jpcfaqiyui4" frameborder="0" allowfullscreen></iframe> 

and images original width of 155px , height of 250px don't transform 155x180 specified in html.

<a href="http://my.jpg" target="_blank"><img src="http://thumbnail.jpg"  width="155" height="180" /></a> 

anybody has idea how fix this?

for player remove width 100%

iframe {   /* width: 100%; */   min-width: 0;   max-width: 100%; } 

or can add inline css "width: initial;" iframe if can not play stylesheet

<iframe width="625" height="352" width: initial;"> </iframe> 

Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -