how to make my back ground picture fit the page

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top