Link to home
Start Free TrialLog in
Avatar of chinman
chinman

asked on

Help with a background bitmap

I notice that Front Page takes my 256 x 256 bit map image and "tiles" it to fill the background. Is there a way to keep this from happening? In other words - I'd prefer it "stretch" the image if needed to fill the background.

Thanks,
Chin


Avatar of Dassa
Dassa

I don't know of anyway to do this in frontpage.  One way is to make sure your picture is actually larger than the page.  This gets a bit messy however when you design for a low resolution and the users have high resolution.
I agree with Dassa although one thing to consider is that you can detect the user's screen resolution and show an appropriately sized image....

<Script Language="JavaScript">
<!--
  if (screen.width > 800)
  {
    document.write ("<Body Background='Image1.gif'");
  }
  else
  {
        document.write ("<Body Background='Image2.gif'");

  }
//-->
</Script>

Cheers

Dave
And dont forget to put the > on like I did

document.write ("<Body Background='Image1.gif'>");

ASKER CERTIFIED SOLUTION
Avatar of Dassa
Dassa

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial