You cannot "position" a "property" with CSS. I am guessing you meant to have the image in data-bg
as a background for your .item
divs.
First you need to change data-bg
to style
to make the image appear as a proper CSS background-image, like this:
style="background-image: url(images/demo-images/team_bg_1.jpg")"
After this, you can use CSS rules to position the background and apply whatever styles you want:
.item {
background-repeat: no-repeat;
background-position: right bottom;
height: 300px;
border: 1px solid red;
}
<div class="item"
style="background-image: url(https://placehold.it/900x200)">
</div>
jsFiddle demo: https://jsfiddle.net/
I am not sure why would you use data-bg
, do you have any JavaScript code that processes this data attribute? Your question is not clear enough.