<pre class="lang:php decode:true  ">add_action( 'wp_enqueue_scripts', 'my_styles_method' );
function my_styles_method() {
	$img_array = get_field( 'front_banner_image' );
	$url       = esc_url( $img_array['sizes']['banner'] );
	ob_start();
	
	// add css here:
	?&gt;
	#home-banner {
		background-image: url('&lt;?php echo $url; ?&gt;');
	}
	&lt;?php
	$styles = ob_get_clean();
	// first argument is an existing enqueued script
	wp_add_inline_style( 'base-stylesheet', $styles );
}
</pre>