how to make my back ground picture fit the page

M

Mark Fitzpatrick

You can't get it to fit the page because you can never really know how big
the page will be. Everyone uses a different size monitor resolution so
designing for one, say 800x600, won't look the same for users with higher
resolution. What you can do is to prevent the tiling, or repeating effect,
of the image in the background. To do this you'll need some special
stylesheet code.

Try adding the following style to the html head section of the page.

<style type="text/css">
<!--
BODY {
background-repeat: no-repeat;
}
-->
</style>

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
D

David Baxter

Or, you can put the background picture inside a table with fixed
dimensions (in pixels) -- that will keep it to the same size regardless
of display resolution.
 
M

Murray

Well, until the user resizes their text, it might.

But - background images do NOT stretch like that, so they are the same size
in any width browser viewport....

(display resolution has very little to do with it)
 
Top