Results 1 to 2 of 2

Thread: self stretching and shrinking graphics

  1. #1
    Join Date
    Dec 2005
    Posts
    2

    self stretching and shrinking graphics

    I have noticed on some websites that certain graphics resize automatically with the page window size, like header and things on pages. Like if you resize this page horizontally the top menu bar with the home, usercp, faq memberlist...stretches horizontally and all of those buttons are recentered and the bar they sit on resizes dynamically, how do i make a picture do that?

    thanks

  2. #2
    Join Date
    Dec 2004
    Posts
    2,788
    Not seeing the actual page in question, I would assume that the image sizes were specified in percentages. If you have an image and you give it a height of 25 pixels and a width of 100% the height will remain constant, regardless of how page elements move about, while the image will expand and contract to be as wide as the other elements allow it to be. If you view the page source of the document that you see this behavior in, you should be able to see how they accomplished the effect.

Posting Permissions

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