need php tags to stretch image to fit viewers window (3 posts)

  1. AZjude
    Posted 11 years ago #

    Problem I have is a background image that is too large for both of my computers but if I make it smaller it will tile at higher resolutions.
    is there a .php tag or css tag to make it stretch to fit? So on a laptop it looks good and on a larger monitor it would look good.

  2. Lorelle
    Posted 11 years ago #

    Not that I know of.

    Because the background image sits in your stylesheet, you would need some way of manipulating the style in your stylesheet based upon a query that would determine the size of the screen being viewed, not to mention the resolution, etc.

    This is one of the main reasons people use fixed width layouts so they can control the width of the design and layout elements.

    Change the image or use a fixed width layout.

  3. AZjude
    Posted 11 years ago #

    Messed around with the image and I think its ok now time will tell.

Topic Closed

This topic has been closed to new replies.

About this Topic