SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Oct 2002
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow multi browser appearance

    Hi all

    I am kinda new (first post) so if i am in the wrong place tell me.

    I only want to know how to get my picture to look the same size regardless of browser size and resolution ( i think i have to embed it right?)

    thx in advance to all those who reply

    Lachesis

  2. #2
    Back in Action Winged Spider's Avatar
    Join Date
    Jun 2001
    Location
    outside my mind
    Posts
    900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Images will display at the same size regardless of browser size, unless you set the width or height to a percent value.

    Resolution will change how large the image appears without changing the width or height actually. At 640x480 a image will look bigger than at 1024x768. But the size never changes.

    Code:
    <img src="/whatever/image.img" height="50" width="50" />
    Is all you need.


  3. #3
    SitePoint Member
    Join Date
    Oct 2002
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Thx

    Okay thanx

    but say I have a picture set as a banner which fills the screen at 1024*768, then when I view it at 800*600 it is too big to see - do i need to specify percentage of the screen it fills?

    and is the tag for this just <img src="image.gif height=50% width=50%> and is this relative to the browser window.

    Again thx for a swift reply
    Lachesis

  4. #4
    Non-Member Siltrince's Avatar
    Join Date
    Aug 2001
    Location
    Belgium
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Lachesis , you could use the "<img src="image.gif height=50% width=50%>" and it would be relative to the brower size but there is 1 important reason why you shouldn't use %-values for images.
    The images will look bad if you set a different width/height then it's original sizes.


Bookmarks

Posting Permissions

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