html - media queries not having desired effect -
after using chrome developer tools try identify element manipulate in media queries, have not had luck in making banner responsive tablet , iphone size. url:
http://thursdaypools.mediafuel.net/innovations/fiberglass-pool-anchoring-system/
if resize it, see banner image not change size @ , have tried following:
@media screen , (max-width: 991px) { #video-header { height: 240px; } } /*@media (max-width: 980px) { .banner { height: 30vh; } }*/ the code thats commented out written before me , didn't work when got , see @ top effort after trying work had. neither #video-header nor .banner seem making difference.
the code banner one:
<?php get_header(); ?> <div id="post-page" class="single-innovations-page content-area"> <?php get_template_part( 'template-parts/content', 'page-intro' ); ?> <!--dancortes added code below here--> <?php get_template_part('template-parts/content','page-banner'); ?> <?php if( get_field( 'product_video' ) ): ?> <div id="video-header" class="full-video"> <iframe id="player" type="text/html" width="100%" height="100%" src="<?php the_field( 'product_video' ); ?>?enablejsapi=1&rel=0;" frameborder="0" allowfullscreen></iframe> <div onclick="closevideo()" class="close-video"> <p>close</p> </div> </div> <?php endif; ?><!--product_video--> <main class="subpage-content"> <div class="medium-wrapper"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="innovation-information"> <?php the_field( 'innovation_information' ); ?> </div> <?php endwhile; else : ?> <p><?php _e( 'sorry, no posts matched criteria.' ); ?></p> <?php endif; ?> </div> </div><!--page-top-->
add background-size .banner
.banner { background-size: contain; }
Comments
Post a Comment