SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2000
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm new to all this and maybe I'm approaching it wrong, but I have been trying to include percentages in my HTML image tags rather than absolute numbers for width and height, especially for banners, so they display consistently across various screen sizes, etc. However, I find I am doing a trial and error apprach to get height to width ratios correct. Is there a formula? In other words,if I want a 750 x 250 pixel image to display 100% wide by X, how do I figure the X?

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The image tag doesn't support percentages in its height and width tags. At least in my previous experience it doesn't.

    ------------------
    Wayne Luke
    Internet Media Provider

  3. #3
    SitePoint Member
    Join Date
    Mar 2000
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    For banners, you should defintely specify the exact pixels. In fact, using percentages in images will always give you trouble. It won't work!

  4. #4
    SitePoint Enthusiast Morpheos's Avatar
    Join Date
    Feb 2000
    Location
    Miches, DR.
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would not use any percetages in my image tags, cause first I think it does'nt even work and second if it would it would not look too good.

    Since you are making it in a graphic program it will always be pixels, never percentages..



    ------------------
    Morpheos - Web Developer
    Digital Works Web Design/Development
    morpheos@carib.com



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
  •