Tag Archives: CSS Shorthand for Background Property

CSS Background Shorthand Properties

Read a good tutorial on CSS Shorthand properties : http://www.dustindiaz.com/css-shorthand/

Background shorthand code :

<style type="text/css">
div#id_name { background:red url(image_url.jpg) repeat-x top left scroll; }

<div id="id_name">
My Div have a good background image

The default background properties of a DIV :

background-color: transparent;
background-image: none;
background-repeat: repeat;
background-position: top left;
background-attachment: scroll;