php - WP: inline styling background image - not working Safari 6.0 and under -


i getting post/page featured image inline background image.

the code below works on of browsers, not on safari 6.0 , under.

on safari 6.0 inline style skips background:url('xxx') no-repeat scroll xxx xxx / cover; , goes directly min-height:(...) .

the background-attachment not showing in dom.

example of single project site: http://skarpsinn.no/prosjekter/oeva. try ex. chrome , safari 6.0. php-code single pages - pretty same on other pages.

            <?php if(is_single()):                  $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->id ), 'single-post-thumbnail' );              ?>                 <?php if ( has_post_thumbnail() ) { ?>                      <div class="featured_image" style="background: url('<?php echo $image[0]; ?>') no-repeat scroll <?php the_field('bg_vert_posisjon'); ?> <?php the_field('bg_hor_posisjon'); ?> / cover; min-height: 700px; position: relative; width: 100%; background-attachment: <?php the_field('bg_oppforsel'); ?>">                 <?php } else { ?>                 <div class="no_feature_image"></div>                 <?php } ?> 

any input help! thanks!

your problem seems

background: url('http://skarpsinn.no/wp-content/uploads/2014/04/banner_oeva.png') no-repeat scroll center center / cover 

if remove / cover , put on own line should work. style be:

background: url('http://skarpsinn.no/wp-content/uploads/2014/04/banner_oeva.png') no-repeat     scroll center center; min-height: 700px; position: relative; width: 100%; background-attachment: initial; background-size: cover; 

(doing worked me on sarafi 5.1.7)


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -