What dimensions should my background image be for a web page?

I'm trying to design a background image for a website, using Photoshop to design the image and then Dreamweaver CS3 to design the web page that has that background.

Despite trying to match up the image dimensions in Photoshop with the page dimensions in Dreamweaver, whenever I upload the page to Dreamweaver (and subsequently the html file) the image does not fit the page as I would like i.e. it doesn't 'stretch' the image to fit - instead it is either too big or tiled.

Can anyone help me with this - is there a standard dimension I should be using?

I'm using Win XP with a 1280 x 1024 screen resolution for what it's worth.

Thanks very much.
I am a cider drinker - like my father before me.

Comments

  • Do you want one image to cover the entire page, without tiling?

    Good luck with that one :) In the past, i've used images that tile or are in a fixed position - you just can't reliably cover a page with a background.

    So, no standard dimension.. you need to think of a web site a fluid design - not a static image
  • isofa
    isofa Posts: 6,091 Forumite
    If you do want just a single background image, not tiled, and want it at least visible in 1280 x 1024, then you need to make it larger than that by a margin, so if a browser window is stretched it will still not "end". However unless it's a very simple image and compresses well with JPG, GIF or PNG, it's likely to be quite large.

    (Also set 0 borders all around the image!)
  • phill79
    phill79 Posts: 494 Forumite
    woj101 wrote: »
    I'm using Win XP with a 1280 x 1024 screen resolution for what it's worth.

    Something to think about:
    Just because you are using that size, doesn't mean the people who will be looking at your page will be. Think about how your page will look on 800x600 etc.
  • woj101
    woj101 Posts: 207 Forumite
    In light of the above and other things I've read, and my lack of experience in producing web pages (outside of MS Word) I've ditched the background picture idea. Keep things simple, that's the name of the game. So what I've opted to do is make a all-encompassing div tag that is 800 pixels wide and centred in the screen so that no matter what resolution the screen is (within normal parameters anyway) the content will always appear in the middle.

    Working your way through Dreamweaver for the first time can be slow going.

    Thanks all
    I am a cider drinker - like my father before me.
  • sweven
    sweven Posts: 107 Forumite
    You're probably right not to do it, but if you wanted to try the best way to do it might be like this.

    Feather the edges of the image down to the same colour all round and then use the following CSS.

    body {background: url(myimage.jpg) #fffffff top center repeat-y;}

    (This assumes you've feathered the image to white - #ffffff)

    That way the image blends in to the background color so it will look reasonable with any screen resolution.
This discussion has been closed.
Meet your Ambassadors

Categories

  • All Categories
  • 343.2K Banking & Borrowing
  • 250.1K Reduce Debt & Boost Income
  • 449.7K Spending & Discounts
  • 235.3K Work, Benefits & Business
  • 608K Mortgages, Homes & Bills
  • 173.1K Life & Family
  • 247.9K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 15.9K Discuss & Feedback
  • 15.1K Coronavirus Support Boards