I hope you can help me with this code below. So I don't know how to style element .img-box with php code.

this is original code from file:

```
<?php hc_echo($img,'<div class="col-md-4">
<div class="img-box">
<img src="','" alt="" /></div></div>' ); 
?>

```

and I have added this: 

```
style="esc_attr($Y_NOW["custom_imgbox_style"]);"

```

so it looks like this:

```
<?php hc_echo($img,'<div class="col-md-4">
<div class="img-box" style="esc_attr($Y_NOW["custom_imgbox_style"]);">
<img src="','" alt="" /></div></div>' ); 
?>

```

but it is not working.

I am still a beginner and I no longer know what to do next.

I need to have ability to add style for .img-box element.

Just i dont know how to embed style for .img-box.

Also there is other solution like this:

```
<?php
echo '<style type="text/css">
        .img-box {

        }
        </style>'; ?>

```

but again how to add php variable inside ?

Thank you