Results 1 to 6 of 6

Thread: Sounds simple... and maybe it is...

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    8

    Cool Sounds simple... and maybe it is...

    This is a purely HTML based question.

    When an image is placed as a background either on a table or a page's background it is automatically tiled.

    Does anybody know how to stretch the image to fill the space instead of having it tiled?

    Thanks.

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    http://www.w3schools.com/css/pr_background.asp

    It looks like you can prevent it from tiling, but I don't see if you can stretch it.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3
    Hyperactive Member Radames's Avatar
    Join Date
    Feb 2001
    Location
    Tech Tropics
    Posts
    360
    Hello, Red. Yes you can prevent it from tiling. If you are using the picture as background use <BODY background="yourPicture" bgproperties="fixed">
    I dont know it it will work on a table background but try it.

    Now beware.... I had it working fine on a webpage until I opened it in a computer that had 1024x768 resolution. You may need to make two versions of your page, one for 800x600 resolution and one for 1024x768

    Good luck!
    Top Tip: You can make friends and impress the opposite sex at geeky cocktail parties by saying "DB" instead of database. - Karl Moore

  4. #4
    ines
    Guest
    watch out if this thing has to work on Netscape as well, because apparently you can't put a picture in the back of a table, or maybe you can but have to change the syntax.

  5. #5
    ines
    Guest
    or maybe I wasn't quite right, this is what Homesite says;

    BACKGROUND="URL of image"
    Internet Explorer and Netscape support the placing of images in the <TABLE> element. (Also in the <TD> and <TH> elements) If used in the <TABLE> element, the image in question will be tiled behind all of the table cells. Any of the supported graphic file formats can be used as a graphic behind a table.

    but I'm quite sure that doens't work in all versions of Netscape

  6. #6
    Hyperactive Member Radames's Avatar
    Join Date
    Feb 2001
    Location
    Tech Tropics
    Posts
    360
    Hmm, yes but remember that hwat he is trying to do is prevent the image from tiling when used as a background. that is where bgproperties="fixed" comes in handy.
    Top Tip: You can make friends and impress the opposite sex at geeky cocktail parties by saying "DB" instead of database. - Karl Moore

Posting Permissions

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



Click Here to Expand Forum to Full Width