Background css shorthand

July 3, 2007 at 9:17 am Leave a comment

  background-color: red;
  background-image:url(provide your image path here);
  background-repeat: repeat || repeat-x || repeat-y || no-repeat;
  background-position: X Y || (top||bottom||center) (left||right||center);
  background-attachment: scroll || fixed;

all these can be written into one

background:red url(provide your image path here)
/*provide x & y postion here */
30px 100px


Entry filed under: css.

creating shadow in css Short-hand property for Fonts

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Flickr Photos

Blog Stats

  • 720,244 hits

%d bloggers like this: