If your style
is in .php
, then you can use WordPress API freely.
<div id="st-career-title">
Test
</div>
<style>
#st-career-title {
background-image: url("<?php bloginfo('template_directory'); ?>/assets/images/career-banner.jpg");
}
</style>