- Maybe DHTMLers can help me where HTMLers couldn't...

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default - Maybe DHTMLers can help me where HTMLers couldn't...

    Maybe I'll have better luck here - no one has been able to help me in the
    Dreamweaver forum.

    I need to display a bunch of pictures that are all of various dimensions
    into a fixed dimension space, like MSN Messenger does with its user photos
    in the chat windows.

    Forcing image dimensions will warp the proportions, so that's no good.

    Forcing one coordinate while leaving the other flexible will maintain
    proportions, but the x,y values won't be consistant from picture to picture.

    I considered the MSN Messenger method of bringing one of the coordinates to
    100 pixels, and then showing only PART of the information of the other
    coordinate. I'm not sure if you guys know what I'm talking about, but
    Messenger will shrink (for example) the width to 100 pixels, keep the height
    proportionate, but only show the middle 100 pixels of the height (or is it
    the other way around? no matter).

    How can I do something similar? Perhaps involving placing an image as a
    background instead of a foreground element?

    How can I recreate the MSN Messenger formula for displaying images in
    constant dimensions without losing the proportions (but losing unnecessary
    sections of the image)?

    Thanks.




    Jon Yeager Guest

  2. #2

    Default Re: - Maybe DHTMLers can help me where HTMLers couldn't...

    I've not seen the MSN thing, but the easiest thing from what you describe
    would probably be to create a div for each image (sized appropriately), and
    specify the image as the background using CSS. You'll need to fiddle with
    some settings a bit, but it shouldn't be difficult.

    This method isn't without limitations though - people wouldn't be able to do
    things such as save the images or print them (if you wanted them to be able
    to). So, instead, you could again put each image in a div (sized
    appropriately *and* with overflow set to hidden), and put each image in the
    appropriate div using a normal img tag.

    I hope that makes sense!

    Rob


    rob :: digitalburn Guest

  3. #3

    Default Re: - Maybe DHTMLers can help me where HTMLers couldn't...

    I must admit I don't really understand (embarassed look).

    Remember, we want at least one of the sides (either width or height) to show
    completely, while truncating the other so as to not have a stretching
    effect... and make each image fit in a specific area (say, 100 pixels X 120
    pixels)

    "rob :: digitalburn" <rob@digitalburn.net> wrote in message
    news:c88fv2$32o$1@forums.macromedia.com...
    > I've not seen the MSN thing, but the easiest thing from what you describe
    > would probably be to create a div for each image (sized appropriately),
    and
    > specify the image as the background using CSS. You'll need to fiddle with
    > some settings a bit, but it shouldn't be difficult.
    >
    > This method isn't without limitations though - people wouldn't be able to
    do
    > things such as save the images or print them (if you wanted them to be
    able
    > to). So, instead, you could again put each image in a div (sized
    > appropriately *and* with overflow set to hidden), and put each image in
    the
    > appropriate div using a normal img tag.
    >
    > I hope that makes sense!
    >
    > Rob
    >
    >

    Jon Yeager Guest

  4. #4

    Default Re: - Maybe DHTMLers can help me where HTMLers couldn't...

    <scratching head>How would that do anything for the original poster?
    > people wouldn't be able to do
    > things such as save the images or print them
    Well, PrtSc works, and the images are in the cache already....

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "rob :: digitalburn" <rob@digitalburn.net> wrote in message
    news:c88fv2$32o$1@forums.macromedia.com...
    > I've not seen the MSN thing, but the easiest thing from what you describe
    > would probably be to create a div for each image (sized appropriately),
    and
    > specify the image as the background using CSS. You'll need to fiddle with
    > some settings a bit, but it shouldn't be difficult.
    >
    > This method isn't without limitations though - people wouldn't be able to
    do
    > things such as save the images or print them (if you wanted them to be
    able
    > to). So, instead, you could again put each image in a div (sized
    > appropriately *and* with overflow set to hidden), and put each image in
    the
    > appropriate div using a normal img tag.
    >
    > I hope that makes sense!
    >
    > Rob
    >
    >

    Murray *TMM* Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139