Autosizing Backgrounds

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PlushifiedNaruto
    New Member
    • Oct 2006
    • 9

    #1

    Autosizing Backgrounds

    Is there a CSS code to make my background image to where it will automatically resize to the resolution of your screen?
  • AricC
    Recognized Expert Top Contributor
    • Oct 2006
    • 1885

    #2
    Try this


    You may want to use something that repeats as your background image. Depending on the size of your image it will take longer for your page to load, also if someone comes to your site with a monitor res bigger than your image the image will stretch.

    HTH,
    AricC

    Comment

    • PlushifiedNaruto
      New Member
      • Oct 2006
      • 9

      #3
      well i would but the whole theme of my site would be ruined if i changed the bg. so that isnt an option.

      Comment

      • AricC
        Recognized Expert Top Contributor
        • Oct 2006
        • 1885

        #4
        Did you try putting the image in a table or div?

        Comment

        • PlushifiedNaruto
          New Member
          • Oct 2006
          • 9

          #5
          well i put the bg in a table but the picture stays the same size and it negates the no scroll code. also what is a div?

          Comment

          Working...