I have created the a div (allservices) with the dimensions below, and require a background image. The background image is of dimensions 865 * 915px. The width of the background sits perfectly into the div, however, the height of the background image is 5px shorter than the height of the div, hence I wish to position it 2.5px down from the top of the div and 2.5px up from the bottom of the div.
Cheers! much appreciation for that any ideas as for the opacity of the background image or would you recommend using something like photoshop because something that has come across my mind but i thought let me try some other ways
I don't recommend photoshop because you'd have to save it as a PNG, and if it's reasonably detailed at all, a PNG that size would be massive (several hundred kb).
What I would recommend, is using the opacity property, but just a little differently.
Code:
<div id="allservices">
<div class="bg"><div>
<div class="content">
Content of all services
</div>
</div>
Bookmarks