Is it possible to make a <div> element contain a background image, and if so, how would I go about doing this?
<div>
You mean this?
<style type="text/css"> .bgimg { background-image: url('../images/divbg.png'); } </style> ... <div class="bgimg"> div with background </div>
2.1m questions
2.1m answers
60 comments
57.0k users