You mean this?
<style type="text/css">
.bgimg {
background-image: url('../images/divbg.png');
}
</style>
...
<div class="bgimg">
div with background
</div>
More Related Contents:
- How to design an HTML/CSS signature that will work in Outlook 2016? [duplicate]
- How to align 3 divs (left/center/right) inside another div?
- Styling an input type=”file” button
- Using sections in Editor/Display templates
- :after and :before CSS pseudo elements hack for Internet Explorer 7
- Regular expression to remove HTML tags from a string [duplicate]
- Hide textfield blinking cursor
- CSS image resize issue
- Prevent Bootstrap Modal from disappearing when clicking outside or pressing escape? [duplicate]
- HTML + CSS: Ordered List without the Period?
- Multiple Forms or Multiple Submits in a Page?
- If an HTML form has two buttons, how do I know which got clicked?
- Flexbox resize and scrollable overflow [duplicate]
- How do I make Firefox auto-refresh on file change?
- How can I write text on a HTML5 canvas element?
- HTML Multiselect Limit
- Second line in li starts under the bullet after CSS-reset
- What is the difference between HTML tags and elements?
- Can I override inline !important?
- Drawing a dot on HTML5 canvas [duplicate]
- How position absolute and fixed block elements get their dimension?
- Ring-shaped process spinner with fading gradient effect around the ring
- Parse local HTML file
- Why is there a default margin on the element? [closed]
- set css border to end in a 90 instead of a 45 degree angle
- Border around specific rows in a table?
- Word wrap a link so it doesn’t overflow its parent div width [duplicate]
- Is it possible to set a src attribute of an img tag in CSS?
- How to fill 100% of remaining height?
- How to make a table with equal column widths in CSS?