Resize image to fit any browser?

How do I set my image to re-size to automatically fit any
browser window?
I know it's a simple thing like pinning the image to a layer
that's size is set to % - am i right, please help!

Nahh - it won't be reliable, from what I understand. And, not
only will it
fail unpredictably, but your image will be subjected to the
horrible pixel
doubling trick of browsers as it resizes....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"*mista*" <[email protected]> wrote in
message
news:eki2ic$6mr$[email protected]..
>>>How do I set my image to re-size to automatically
fit any browser window?
> I am not too sure about this but if you define the
container holding the
> image
> as width="100%" and then within the image tag define
<img src=".."
> width="100%" height="100%" >, that should stretch the
container and the
> image
> to the size based on the browser window. I can't say
much about how this
> will
> impact the resolution of the image.
> And like Shane said, what would you want to achieve by
this.
> Maybe someone more experienced can give better
suggestions
>

Similar Messages

  • How do you make html page resize to fit any browser

    Hi All,
    How do you make the html page resize to fit any browser/window both vert and horizontally.
    Thanks!
    Randy

    Horizontally by using percentage width instead of pixels.  This is called a liquid layout.
    http://alt-web.com/TEMPLATES/CSS2-Liquid-Page.shtml
    Vertical resizing is irrelevant in web design.  Page content determines page height.  The more content, the longer the page.  The less content, the shorter the page.  Scrollbars appear when needed.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • I5Charts resizing to fit any browser settings

    We have 6 i5Charts in one page.
    How can we make each size automatically re-size to fit any browser settings?
    One chart code is below:
    var i5Chart1 = new com.sap.xmii.chart.hchart.i5Chart("WVLMicrofiber7/Charts/WVLCharts", "WVLMicrofiber7/WebServices/WSWVL7TESTDATA");
        i5Chart1.setChartWidth("940px");
        i5Chart1.setChartHeight("250px");
        i5Chart1.getChartTemplateObject().setProperty("Title","Freeness Lane 1");
        var Query1= i5Chart1.getQueryObject();
        Query1.setParameter("Param.1",tempMachine);   
        Query1.setParameter("Param.2","FREENES1");       
        i5Chart1.draw("FREENES1");

    Hi Amr,
    If you want the i5Chart to occupy the available space in the broswer page rather than specifying width, then you can try by not providing width, i.e., something as shown below:
    var chart = new com.sap.xmii.chart.hchart.i5Chart(<DT>,<QT>);
    chart.draw('content1');
    In the above case the chart will expand to 100% of the available width on the browser page.
    Best Regards,
    Ria

  • How do I adjust my background image to fit my browser

    I have a background image that it 1600 x 1200 and when I try to view in browser, almost half the image gets cut off. How do I adjust the size to fit my browser or even adjust it to fit any browser?

    1600 x 1200 is a huge image by web standards.  Images don't resize to fill viewport without workarounds (tricks).  And while Martin's solution works in some browsers, it's not bulletproof.  Downsides may outweigh advantages. 
    For best cross browser results (including older IE), establish a fixed page width of say 1000px to fit on average displays.  Center your page layout.
    Open your image in Photoshop or Fireworks and resize it  to 1000 x 750.   Your image won't fill the viewport but it will fit your page width.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Safari option to resize image to fit window?

    This item has come up here before, but seems to always fizzle out. Did anyone ever find a plugin for Safari that would resize images so that they fit in the browser window?
    The problem is when you try to view pictures that are larger than the screen size, I would like to be able to have my Safari browser automatically resize them to fit the screen. MS Internet Explorer has this feature and I have gotten used to it!
    Randy.

    Geert01 wrote:
    I want to achieve this: Table whith background image but cannot get it to work in an Apex page with HTML region.
    Adding the following code to the html region:
    <table class="tableWithBackground" width="300px" height="200px" border="1">
        <tr>
            <td>
                <img class="tableBackground" src="#APP_IMAGES#Demo.jpg">
                Hello
            </td>
            <td>
                World
            </td>
        </tr>
        <tr>
            <td>How are<br><br><br><br><br>you?</td>
            <td>I am fine</td>
        </tr>
    </td>
    Results in a page with a table but without borders (at his stage I have not yet uploaded the Demo.jpg). After uploading the Demo.jpg results in a table with the entire image placed in het first cell. After placing the class code in the CSS inline property I expected to see the result as is shown in the Table whith background image  demo. For some reason this does not work (the image is no longer visible).
    Can anybody tell me how to achieve my goal?
    This is a workaround. What's your real goal? Why do you want to do this?
    What browser(s)/version(s) are you using? All current browser versions have support for CSS3 background sizing which is the proper way to do this.

  • Does anyone resize images to fit InDesign Rectangle Frame tool?

    My question is based on some booklets that we have created in the past. We have some very large images all 300 ppi, but when shrunk down they tend to have an effective ppi of 500 or greater. Part of me feels that when the effective dpi is large, that I should go back into photoshop and resize those images, hopefully saving the size of the PDF file after exporting. So, my questions are one, does anyone even resize images anymore to fit the rectangle frame to keep ppi around 300 or two, do they not do this anymore and let InDesign handle this process when exporting to PDF?
    Thanks Everyone,
    Mike

    Better quality is to resize in Photoshop and sharpen there, because InDesign has no choice of the method of sharpening. But to be honest, in the majority o cases I do resampling in InDesign when exporting to PDF.

  • Resizing image to fit  lower display resolution

    Hi!
    I'm pretty new in Java and have some problems regarding image sizing.
    I have a picture (imageIcon) placed in a JLabel (placed on a panel among other JLabels). It fits fine in 1024 by 768 pixels but when I change the resolution to 800 by 600 it doesn't. I thought that the LayoutManager was supposed to take care of that? How can I make it all adjust to the current resolution? Oh, and I'm maximizing the frame using setExtendedState() but that doesn't have anything to do with it, or does it..? I use GridBagLayout by the way...

    It depends how you want to control them - and what maths you want to use to do that.
    For the code I posted above, instead of using:
    Dimension ss = new Dimension(toolkit.getScreenSize());
    int w = ss.width;
    int h = ss.height;it would be generally better if you just used:
    int w = getWidth();
    int h = getHeight();This will make w equal the JFrame's width, instead of the screens.
    I know that you are using a JFrame the size of the screen, however, this code will prevent bugs when the user resizes the window etc.
    ps. dont forget to hand out them dukes.

  • Scaling My Flash Movie Proportionally To Fit Any Browser

    Hi,
    Thanks for any help.
    I am trying to make my flash site scale to the browser size, just like this site: http://www.flashcomponents.net/upload/samples/1213/index.html?full=true
    The reason is because I want to design for bigger screens (that most of us have) yet still be able to view my website on small monitors i.e. 800 x 600.
    I don't think I want a 'liquid/fluid' layout (as mentioned in many tutorials) because they can compromise the design aesthetic if browser window is too big or small.
    I just want the movie to shrink or grow proportionally with the browser. I would also like it to stop growing beyond the dimensions that I build the flash movie- to avoid losing bitmap quality.
    I currently have my flash centered in the browser with fixed dimensions. What settings do I need to change in Flash or Dreamweaver to make this happen? Also, if you have any comments or criticisms about this type of layout please do mention it. I have found only one issue with this layout - it does not zoom in when you press "command & +", but other flash sites do.
    Thank you!

    Hi animated_cloud.
    In all honesty, I dont think you should create a scalable template if you will be using bitmap images in your movie. On the other hand, if you will be using vector images, or dinamically drawn content within your movie, then making it scale is fine.  But this is up to you! =)
    ok. first off, you should go check in your File ---> Publish Settings. In the SWF Tab you should see scaling options. You should play around with some of these to understand what each do.
    Have a look through those settings, and if you cant find what you want come back and we'll go from there.
    good luck.

  • Cannot get an Apex HTML region with table with a background image to resize image to fit table

    I want to achieve this: Table whith background image but cannot get it to work in an Apex page with HTML region.
    Adding the following code to the html region:
    <table class="tableWithBackground" width="300px" height="200px" border="1">
        <tr>
            <td>
                <img class="tableBackground" src="#APP_IMAGES#Demo.jpg">
                Hello
            </td>
            <td>
                World
            </td>
        </tr>
        <tr>
            <td>How are<br><br><br><br><br>you?</td>
            <td>I am fine</td>
        </tr>
    </td>
    Results in a page with a table but without borders (at his stage I have not yet uploaded the Demo.jpg). After uploading the Demo.jpg results in a table with the entire image placed in het first cell. After placing the class code in the CSS inline property I expected to see the result as is shown in the Table whith background image  demo. For some reason this does not work (the image is no longer visible).
    Can anybody tell me how to achieve my goal?
    Thanks in advance!
    Geert

    Geert01 wrote:
    I want to achieve this: Table whith background image but cannot get it to work in an Apex page with HTML region.
    Adding the following code to the html region:
    <table class="tableWithBackground" width="300px" height="200px" border="1">
        <tr>
            <td>
                <img class="tableBackground" src="#APP_IMAGES#Demo.jpg">
                Hello
            </td>
            <td>
                World
            </td>
        </tr>
        <tr>
            <td>How are<br><br><br><br><br>you?</td>
            <td>I am fine</td>
        </tr>
    </td>
    Results in a page with a table but without borders (at his stage I have not yet uploaded the Demo.jpg). After uploading the Demo.jpg results in a table with the entire image placed in het first cell. After placing the class code in the CSS inline property I expected to see the result as is shown in the Table whith background image  demo. For some reason this does not work (the image is no longer visible).
    Can anybody tell me how to achieve my goal?
    This is a workaround. What's your real goal? Why do you want to do this?
    What browser(s)/version(s) are you using? All current browser versions have support for CSS3 background sizing which is the proper way to do this.

  • Image to fit any width

    Hi,
    I'm putting a flash site together with a stage size of 800 x 600px but I have a background image that I want to use in the same Flash file, the size = 1350x800px  (jpg) that I want to stretch/compress to whatever screen resolution the viewer has. So I need 100% width & height, I've gone through the forums but can't figure this out.
    I'm on Flash 8, Win 7 and Dreamweaver 8.
    Thanks in advance.

    Sorry, I forgot to insert this link:   http://www.maris-interiors.co.uk/   This what I'm trying to achieve, (the background image).

  • Images not displaying (any browser)

    I am using Ubuntu Trusty (Latest Ver.) All my browsers are up to date, including firefox. The browsers display images from all of the websites I visit, except for my personal server. I think this may be a problem with the mime-type or a problem with libraries installed on my computer. When I visit a JPG or PNG image it says 'this image cannot be displayed because it contains errors'. I am not sure why.

    I have determined it is not a problem with firefox, ubuntu, etc. It is simply a server problem. Sorry!

  • Any Browser freezes when trying to add image finder pop-up

    Since updating to Mavericks, whenever I try to add images etc in ANY Browser, the finder popup freezes when I select Desktop for the image.
    I have found a work around, I created a folder, I called Images on the desktop, and when I copy any images etc into that folder, I can select the folder, and the contents to add to browser etc.
    This also works if I copy image to any other sidebar folder, ie documents.
    Sometimes works off desktop if I reboot imac, for a while.
    This is very annoying, and has only happened since 10.9 update
    I have to Force Quit on the browser, to continue using that Browser
    Firefox, Safari, Chrome, Camino, all the same. (Latest versions)

    I wasn't referring to this forum, but I've just tried to add image to this post , and the same problem shows.
    Choosing Desktop from finder pop-up sidebar, browser freezes then I have to force quit.
    Select any other sidebar item, including my folder "Image" from Desktop, works fine !!
    Funnily enough, because this forum adds image into the message, I can drag & Drop image here !!!
    But only in compose window, when I post message, the image disappears !
    However, this dooesn't bother me.
    My problem is with forums where images are added by an extra input below message body

  • Cropping/resizing image by pixel dimensions

    I am trying to crop or resize an image that is originally 2,122 x 1,415 px | 7.1 x 4.7 in | 300 dpi. I am to crop/resize image to fit 756 x 275 px. However, I don't want to lose the whole image. I would like to use the whole image just adjust it to the dimensions.
    How can I accomplish this without creating any distortion or by removing elements by cropping the image?

    Hello Slange,
    may I propose a solution based on a more mathematical derivation, where I assume the height of 275 px is decisive. The way is the same, if the 765 px width is important.
    The reduced copy of 2122 x 1415 provides 412 x 275. To the wished 756 you need: 756 - 412 = 344. Splitting it into two parts I'll get 344 : 2 = 172. These I mount now (The black borders are only for better overview.) to an image with the wished measures 756 x 275:
    The white area you can fill it with any suitable color.
    Hans-Günter

  • Resizing images in a div to fit browser width

    i have a page with rollovers in a DIV:
    http://toddheymandirector.com/REEL/index_newlook.html
    i want the the images, "nike the getaway", etc, to resize to fit the browser window width. i tried putting them in a div and adding
    row {
        max-width: 100%;
        height: auto;
        width: auto\9; /* ie8 */
    but it didnt work..
    ideas?
    thanks

    You could try something like the below. Basically it will show a maximum of 4 images per row (25%) so:
    if your image width is 300px, for the browser to view all 4 at 100% their window needs to be 1200px wide
    if their browser window is smaller than 1200px, the images will start to move onto new rows
    if the browser window is bigger than 1200px, it will scale the 4 up to fit the width.
    You can change the width of the images to match your optimal browser window and/or change the percentages to see the effect it has.
    Eg, if you remove the "min-width:25%;" from #gallery ul li it will not scale the images at all. If you change "min-width:25%;" to "width:25%;", it will always show 4 images in a row and scale up or down to fit the window.
    Best thing to do is play around until you're happy. Good luck.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    body{
        background-color:#666666;
        margin:0;
        padding:0;
    #container{
        width:100%;
        height:auto;
        margin:0;
        padding:0;
    #title{
        width:100%;
        float:left;
        color:#FFFFFF;
        font-family:Arial, Helvetica, sans-serif;
        font-size:140%;
        line-height:150%;
        margin-bottom:30px;
        text-align:center;
    #gallery{
        width:100%;
        height:auto;
        margin:0;
        padding:0;
        float:left;
    #gallery ul{
        width:100%;
        height:auto;
        margin:0;
        padding:0;
        float:left;
        background-color:#666666;
        list-style-type:none;
    #gallery ul li{
        min-width:25%;
        display:block;
        margin:0;
        padding:0;
        float:left;
        background-color:#666666;
    img{
        display:block;
        border:none;
        margin:0;
        padding:0;
        width:100%;
    </style>
    </head>
    <body>
    <div id="container">
    <div id="title">This is a floating web gallery</div>
    <div id="gallery">
    <ul>
    <li><img src="nike.png" /></li>
    <li><img src="nike.png" /></li>
    <li><img src="nike.png" /></li>
    <li><img src="nike.png" /></li>
    <li><img src="nike.png" /></li>
    <li><img src="nike.png" /></li>
    <li><img src="nike.png" /></li>
    <li><img src="nike.png" /></li>
    <li><img src="nike.png" /></li>
    </ul>
    </div>
    </div>
    </body>
    </html>

  • Can't see images in any browser

    I cannot see any image in any browser if I use a testing
    server. I know the server is configured correctly. This site has
    been working fine for the last two months, and now since I tried to
    install net web developer express edition 5, the site has been
    trashed. I was using asp.net, then went to php ( on IIS),
    coldfusion, and now asp. I tried uninstalling and reinstalling
    dreamweaver. I ried installin gother browsers. I've tried
    everything. It's not in the preferences, I don't know where it is.
    But I can see them fine, if I remove the testing server, and just
    view the pages locally in the browser.
    Can someone please tell me what could be causing this. I've
    been working on it none stop for three days, and I'm getting very
    frustrated. Last night I wanted to throw this computer across the
    room. I have to get this finished. Thanks.
    Jackie

    > But I can see them fine, if I remove the
    > testing server, and just view the pages locally in the
    browser.
    broken mouse- sorry for double post.
    guess- the paths to the images are site root relative (start
    with a leading
    /slash) and the site's local address is to a subfolder (like
    http://localhost/thissite/ )
    if that's it-
    fix one- convert all the paths to document relative.
    (the pulldown at the bottom of the "Browse to File" dialog
    box in dw)
    also- see the relativity extension here:
    http://www.microwaved.plus.com/dw/
    fix method two-
    google on "virtual host" for your type of local server. Then
    you could set
    up "fake" local domain name for this site- and use
    http://thissite.local and the site
    root relative paths would work.

Maybe you are looking for