Results 1 to 2 of 2

Thread: problem in background of DIVs....

  1. #1
    Join Date
    Feb 2009
    Posts
    156
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Default problem in background of DIVs....

    HI friend....
    i have many divs in my web page , all are having different sizes, and i want to set the background for all the divs, i have 1 pic its size is smaller than other divs, and i dont want to repeat the image because its corner are round... i only want to stretch the image for larger divs and shirnk the pic for smaller divs....


    plz suggest me for it....
    Thanx in advance..

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    That can be done with the backround-size property in CSS3. Unfortunately, this is not supported by all browsers yet. Until it is, you will have to resize the background images yourself.

    If you want more info about background-size take a look at these articles:
    http://www.css3.info/preview/background-size/
    http://webdesign.about.com/od/styleproperties/p/blspbgsize.htm

    Good luck!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •