Resizing image using CSS - not working in IE

Hello,
I have a standard report with couple of columns one of which a image column. The images are of varying sizes and I manged to resize them to a fixed width & height by using CSS code in page header as below:
td[headers="ITEM_PICTURE"] img {
  display: block;
  width: 70px;
  border: 1px solid #999;
  padding: 4px;
  background: #f6f6f6;
}The CSS does the trick in Chrome & Firefox but does not work in internet explorer. Is there a way to make this CSS code IE friendly?
Cheers for help.

William Wallace wrote:
I am using Apex 4.2.1 (had this issue in 4.1.1 as well) and using theme 10.Ah, the Sludge Sand theme. In 4.x that's a legacy theme only really included to allow applications to run on IE6. It's therefore intended to run in quirks mode, meaning in Internet Explorer terms there's no support for anything that didn't work in IE6 (for certain values of "work"). This means no CSS3, no support for a lot of useful CSS2.1 stuff (like attribute selectors), and probably problems with jQuery which requires standards mode. Adding a DOCTYPE to the page templates to trigger standards mode Interactive Report: how can I display carriage returns?. In 4.2 you really should switch to one of the latest Standard themes, or at least one of the standards mode Legacy themes (those not marked with a "*").
If you must use theme 10, and there are no other images in this report (like edit icons) then you could add a static ID to the region and use a more basic selector like:
#static-id td.t10data img {
  display: block;
  width: 70px;
  border: 1px solid #999;
  padding: 4px;
  background: #f6f6f6;
}However, it appears that one of IE's quirkier quirks mode quirks is that CSS padding is not supported on images, so the presentation you want is not possible using theme 10 in IE and CSS alone.
Switching to a modern theme is recommended.
Edited by: fac586 on 02-Mar-2013 10:31

Similar Messages

  • Holding SHIFT to resize image in PROPORTION not working - InDesign CC

    Hello,
    I am putting a portfolio together containing a ton of images.
    I constantly use the SHIFT to resize images in proportion constantly, but it is not work.  It resizes randomly wherever my curser goes.
    It works in Photoshop CC and Illustrator CC
    I have uninstalled InDesign (uninstalled preferences too), then re-installed with no result.
    Using the Scale tool (by pressing S) still does not work
    I have been using the manual SCALE with percentages or using the "fit content proportionally" buttons on the toolbar, which is killing my workflow, as I need fine grain control
    I may have typed something out while thinking I was in a text box, when I was not.  This may have turned on or turned off the feature.  I'm not sure how to bring it back now.
    Any help would be appreciated
    Casey

    Which tool are you using, and which platform?
    I use the selection tool, myself, and for that you need to press BOTH Ctrl (PC)/Cmd (Mac) and Shift before dragging to scale proportionally. On windows you must press the keys before clicking the mouse.
    How did you replace the preferences? Directions to do it properly are at Replace Your Preferences

  • Buttons using CSS not working properly

    I am using Dreamweaver CS4.
    I can't get buttons to work properly using CSS.
    The buttons are supposed to have a red border around them when inactive (a:link).
    Hovering over the button causes it to change its appearence (this works).
    Clicking the button works.
    Do this then click the BACK arrow.
    Buttons no longer have red border.
    I have tried this with FireFox, IE 7, IE 6 and Safari. They all do the same thing.
    You may see it in action at www.justforso.net/buttons.htm
    What am I doing wrong???
         .....  Thanks for your help 
    Here is the code:
    /* CSS Document */
    Theme Name: Buttons Test
         margin: 0;
         padding: 0;
    body {
         font: 80%/1.6 Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
         color: black;
    a.example1:link
       font-size:14px;
       font-weight:bold;
       text-decoration:none;
       border-style:outset;
       border-color:red;
       border-width:5px;
       background-color: #FFFFCE;
       width:125px;
       color:navy;
    a.example1:hover
       font-size:14px;
       font-weight:bold;
       text-decoration:none;
       border-style:inset;
       border-color:red;
       border-width:5px;
       background-color: #FFFFCE;
       width:125px;
       color:maroon;
    /* CSS Document */
    /* HTML Document */
    <!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>Buttons Test</title>
    <link rel="stylesheet" href="buttons.css" type="text/css" media="screen" />
    </head>
    <body>
    <p> </p>
    <p> </p>
    <A href="http://www.sitepoint.com/" class="example1"> Beginners </A>
    <A href="http://www.sitepoint.com/" class="example1"> Promotion </A>
    <A href="http://www.sitepoint.com/" class="example1"> Site Point </A>
    </body>
    </html>
    /* HTML Document */

    It's because you have created styles only for the :link and :hover pseudo-classes. Your buttons revert to the default state when the link is active (being clicked) or has been visited. You need to assign properties to the :visited and :active pseudo-classes as well.
    Another point about your CSS is that you're failing to make use of the cascade. There's no need to repeat values that don't change. I have rewritten your CSS like this:
    a.example1
       font-size:14px;
       font-weight:bold;
       text-decoration:none;
       border-width:5px;
       border-color:red;
       background-color: #FFFFCE;
       width:125px;
       color:navy;
    a.example1:link, a.example1:visited {
         border-style:outset;
    a.example1:hover, a.example1:active
       border-style:inset;
       color:maroon;
    This applies common rules to the basic a.example1 selector, and sets the overrides for the pseudo-classes.
    One other point. You're using an XHTML DOCTYPE. All tag names MUST be in lowercase to be valid. This is wrong:
    <A href="http://www.sitepoint.com/" class="example1"> Beginners </A>
    The opening and closing <a> tags should be in lowercase.

  • Resizing images within Mail not working in Snow Leopard

    Hi,
    I recently upgraded to Snow Leopard on both my desktop (iMAC Quad Core) and my MacBook Pro. I'm now experiencing an issue when I attach images within the Mail application.
    In the past, if I attached an image I could resize it by selecting the option at the lower right of the window and it would scale the image accordingly. Now if I select "large" it resizes the image as if I selected small. It's tiny, like 30KB. I tried it on both machines and I get the same thing.
    This was never an issue before upgrading to Snow Leopard. In the past if I selected "large" it would scale my image down to roughly 4X6 300dpi.
    Has anyone else found a fix for this issue?
    Thanks so much!
    Michael

    Hi Terence,
    thanks for your reply.
    But i have now a Problem!
    iPhoto 09 itself can send max. 10 pics in one mail. When i drag & drop more photos to mail as attachement, mail can´t resize photos with greater than 150dpi correctly.
    I have many photos greater than 150 dpi
    With new iPhoto 09 i can not send:
    1. more than 10 photos
    2. without "zipping"
    with mail i can send more than 10 photos at one time but i cant resize these images!
    Allso whe i use this way:
    http://discussions.apple.com/thread.jspa?threadID=2627690&tstart=0
    The only way to send more than 10 photos with resizing the images is:
    1. export these photos from iphoto to a folder with resizing function
    2. drag or attach these photos to a mail
    3. send mail
    4. delete the created folder with images
    5. empty trash
    iPhoto 8 can send many photos at one time including resizing and display the estimated size of mail (e.g. Megabytes).
    Taner

  • Trying to position a form in the header using CSS - not working right in IE

    I am making my first foray into CSS-only design (no tables), and it’s going pretty well – except for one thing (so far). If you look at this link in Firefox http://www.daveblaker.com/clients/jenslist/indexTEMP.htm the “Search Archives” field appears where I want it (in the pale yellow area of the header, to the far left). If you view it in IE6 – it ends up more or less in the center and up a bit. I've tried placing the form inside the header div, outside the wrapper div, etc. Any help would be appreciated…
    Thanks!
    DB

    Hi,
    Please check if there is Event ID 9017 and 9018 in the application log, make sure the MRM works well.
    Please make sure the Microsoft Exchange Mailbox Assistants service is working well.
    And you can increase the diagnostic logging level for the MRM, then you can monitor the events in the application log.
    Best regards,
    Belinda Ma
    TechNet Community Support

  • Hello, I am trying to upgrade to yosemite, but I get the "disk cannot be used to startup your computer" error. Resizing the partition does not work, I get the error "MediaKit reports no such partition" probably because I installed linux in dual boot

    Hello, I am trying to upgrade my macbook pro to yosemite, but I get the "disk cannot be used to startup your computer" error.
    Resizing the partition does not work for me and I get the error "MediaKit reports no such partition" probably because I installed linux in dual boot and the disk manager is lost.
    Anyway to tell the yosemite installer that it should not pay attention whether the disk is bootable or not ?
    If I am doomed, any way to delete the installer and downloaded OS from my hard drive ?
    Thanks for your help

    As usual, the Linux installer wrecked the partition table. You would have to boot from your OS X installation disc and repartition. Doing so will of course remove all data from the drive, so you must back up first if you haven't already done so.

  • After upgrading to Lion Image Capture does not work, even though it is intel software.  Gives error 9931.  What gives?

    After upgrading to Lion, Image Capture does not work, even though it is intel software.  Gives error 9931.  What gives?

    Ouch, if it is indeed damaged, then sadly you need to restore the whole danged huge OS!
    Didn't used to be this way before Lion/10.7.
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    If that doesn't help Reinstall the OS.

  • Centering Images using CSS but having links on the Images

    Hi all,
    I have a problem on centering an image using CSS. I read on many forums that you have to use margin-left , margin-right and set to auto. and also set the display:block which I had done.
    The problem is if I want to have a link from the image. Because I have set the display to block, the link will span the entire container containing it! How do I resolve that? I only want the image to be linkable and not the entire container!
    Thanks for reading!

    Murray *ACP* wrote:
    Because I have set the display to block, the link will span the entire container containing it!
    That's incorrect.  If the display:block is applied to only the IMAGE, the anchor tag will be exactly the same dimensions as the image and will not fill the container.
    Hi Murray,
    Weirdly it does in my experiments. (code below). Even if I set the 'a' tag to the width of the image it still makes the whole <div> container clickable:
    <!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">
    #imgWrapper {
        width: 900px;
        margin: 0 auto;
        border: 1px solid #000;
    #imgWrapper img {
        margin: 0 auto;
        display: block;
    </style>
    </head>
    <body>
    <div id="imgWrapper">
    <a href="http://www.bbc.co.uk"><img src="slice_2.jpg" width="595" height="130" /></a></div>
    </body>
    </html>

  • Image drag drop not working in scaffholding. Does it require soem setting?

    image drag drop not working in scaffholding. Does it require soem setting?

    Hello Manoj,
    The scaffolding teamplate which you use to create scaffolding page is actually a design prototype which helps you to create similar types of pages instances very quickly without authoring each page separately (for example news, aticle types of pages) and that is the concept of scaffolding only.
    For example - When you go to location http://localhost:4502/miscadmin#/etc/scaffolding/geometrixx you will see a "News" page which is an example of scaffolding (this is a similar page which you can create using scaffolding template).
    Now if you open this page you will be accessing http://localhost:4502/cf#/etc/scaffolding/geometrixx/news.html and here you will see already design page.
         1. if you access page properties from side kick you will see how this page is configured using target template and target path
         2. if you go to design mode using side kick you will see how the component has been design (which is similar to what appears on page when you came first time)
         3. Now come back to normal view of that page (http://localhost:4502/cf#/etc/scaffolding/geometrixx/news.html) and author this page with some dummy property and click on "create" button. I know here you can not author the image as it comes as disabled empty box.
         4. once you author the content and click on create button it will create an instance of scaffolding page on the same page you can see the link on the top of same page.
         5. Now access that page, when you access that page the page will take reference of target template you configured using pare preoperties to display the page.
         6. On this page you will see the same component you configured and when you will edit it you can author the image from there directly.
    Now question is why to configure same component two times half data from scaffolding and half data from page but answer is the design is correct because the page design which you have created (for example http://localhost:4502/cf#/etc/scaffolding/geometrixx/news.html) is just proto type to create actual page instances and prototype can not holds values for page instance (specially image until it doesnt configured correctly for page instance in this case) which exist only when you create pages using the scaffolding page prototype. Otherwise you have to do more customization by extending scaffolding "/libs/wcm/scaffolding" changing the code and design OR you have to design it according to your target page strtucture which you have configured in page properties (specially image node).
    If you want to create your own page prototype using scaffolding template and want image to associate just copy paste "/etc/scaffolding/geometrixx/news/jcr:content/dialog/items/items/tab2" node to your newly created scaffolding page prototype.
    for more information on scaffolding just refer -http://dev.day.com/docs/en/cq/current/wcm/scaffolding.html
    I hope it clarifies your question and help you to proceed. Let me know if you need more information or help.
    Thanks,
    Pawan

  • Change password on the first use - does not work

    Change password on the first use - does not work.
    Created a user and specified 'Change password on the first use' - when user logs in - the 'Change password' window does not pop- up.
    Please advise.

    (APEX 4.0.2) I am running into this same issue - if you don't set the password expiration and locking to 'Yes', the user gets into the app without being asked to change the pw.
    When you do set expiration and locking - after the user logs on with their temporary password, it does take them to the change password page (4155:50) but the username is blank. Because the username didn't get to the page the old password will never match and you get the "Invalid password" message.
    What am I missing? Anyone successful doing this?
    Simple application, default authentication, no javascript, HTTP_SERVER, no ssl.
    Thanks,
    Steve

  • How to resize image using java imageio

    Hello ,
    I want to know how to resize image using java imageio.
    I dont want to use java awt because i am writing a web application.
    help is very much needed
    thank you.

    Just use an AffineTransform !
    Its much easier

  • Since I refreshed Firefox 36.0.4, "Save page as" and "save image as" are not working (even in Safe mode)

    I refreshed FF 36.0.4 on invite. Since then "save page as " and "save image as" are not working -- no response when clicked.
    In Safe Mode, same problem.
    I serached past forum discussions and found several occurrences, but no convincing response.

    ''afew2 [[#question-1054433|said]]''
    <blockquote>
    I refreshed FF 36.0.4 on invite. Since then "save page as " and "save image as" are not working -- no response when clicked.
    In Safe Mode, same problem.
    I serached past forum discussions and found several occurrences, but no convincing response.
    </blockquote>
    I tried troubleshooting plugins, none appeared to be causing the problem.
    I installed 36.0.1, but no difference. Went back to 36.0.4, still no change.
    I ran a malware check with Malwarebytes, no change.
    A past thread here suggested deleting localstore.rdf, which I tried, no result.
    People have had this problem in the past. No one has any idea of how to fix it?

  • Dynamic resizing in JDialog using setSize not working properly on solaris

    can anyone help..
    Dynamic resizing in JDialog using setSize is not working properly on solaris, its work fine on windows.
    i have set Jdialog size to setSize(768,364),
    when i dynamically resizing it to setSize(768,575); it doesn't get change but when i move dialog using mouse it gets refreshed.
    this problem is only happening on solaris not on windows.

    Hi,
    It's only an approach but try a call of validate() or repaint() after re-setting the size of your dialog.
    Cheers, Mathias

  • Resized animated gif ImageIcon not working properly with JButton etc.

    The problem is that when I resize an ImageIcon representing an animated gif and place it on a Jbutton, JToggelButton or JLabel, in some cases the image does not show or does not animate. More precicely, depending on the specific image file, the image shows always, most of the time or sometimes. Images which are susceptible to not showing often do not animate when showing. Moving over or clicking with the mouse on the AbstractButton instance while the frame is supposed to updated causes the image to disappear (even when viewing the non-animating image that sometimes appears). No errors are thrown.
    Here some example code: (compiled with Java 6.0 compliance)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test
         public static void main(String[] args)
              new Test();
         static final int  IMAGES        = 3;
         JButton[]           buttons       = new JButton[IMAGES];
         JButton             toggleButton  = new JButton("Toggle scaling");
         boolean            doScale       = true;
         public Test()
              JFrame f = new JFrame();
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel p = new JPanel(new GridLayout(1, IMAGES));
              for (int i = 0; i < IMAGES; i++)
                   p.add(this.buttons[i] = new JButton());
              f.add(p, BorderLayout.CENTER);
              f.add(this.toggleButton, BorderLayout.SOUTH);
              this.toggleButton.addActionListener(new ActionListener() {
                   @Override
                   public void actionPerformed(ActionEvent e)
                        Test.this.refresh();
              f.setSize(600, 300);
              f.setVisible(true);
              this.refresh();
         public void refresh()
              this.doScale = !this.doScale;
              for (int i = 0; i < IMAGES; i++)
                   ImageIcon image = new ImageIcon(i + ".gif");
                   if (this.doScale)
                        image = new ImageIcon(image.getImage().getScaledInstance(180, 180, Image.SCALE_AREA_AVERAGING));
                   image.setImageObserver(this.buttons);
                   this.buttons[i].setIcon(image);
                   this.buttons[i].setSelectedIcon(image);
                   this.buttons[i].setDisabledIcon(image);
                   this.buttons[i].setDisabledSelectedIcon(image);
                   this.buttons[i].setRolloverIcon(image);
                   this.buttons[i].setRolloverSelectedIcon(image);
                   this.buttons[i].setPressedIcon(image);
    Download the gif images here:
    http://djmadz.com/zombie/0.gif
    http://djmadz.com/zombie/1.gif
    http://djmadz.com/zombie/2.gif
    When you press the "Toggle scaling"button it switches between unresized (properly working) and resized instances of three of my gif images. Notice that the left image almost never appears, the middle image always, and the right image most of the time. The right image seems to (almost) never animate. When you click on the left image (when visble) it disappears only when the backend is updating the animation (between those two frames with a long delay)
    Why are the original ImageIcon and the resized ImageIcon behaving differently? Are they differently organized internally?
    Is there any chance my way of resizing might be wrong?

    It does work, however I refuse to use SCALE_REPLICATE for my application because resizing images is butt ugly, whether scaling up or down. Could there be a clue in the rescaling implementations, which I can override?
    Maybe is there a way that I can check if an image is a multi-frame animation and set the scaling algorithm accordingly?
    Message was edited by:
    Zom-B

  • How do I scale a lot of images using CSS in HTML5 and CSS3

    I have a CSS image gallery that displays a larger photo with descriptive text below it, when a thumbnail image is hovered on.
    Each photo has code like that following:
    <a class="thumbnail" >
    <img src="thumbs1/paradethumbs/DSC_0073.jpg" alt="thumbnail picture" />
    <span><img src="pics1/paradepics/DSC_0073.jpg" alt=" " /><br /> 19 - a black faced sheep.</span>
    </a>
    The first source is a thumbnail,  image stored at a size of 72 by 48.
    The second source is an image stored at 600 x 400.
    When the thunbnail is hovered on, the larger photo is displayed at its full size using css.
    There are 20 or so thumbnails in this gallery, and different numbers in other galleries that use the same code.
    The example above is number 19 from 20.
    This works fine on tablets and larger displays.
    When I wish to show it on an Iphone or similar, with a display that is 480 or less wide, I need to scale the larger photo down to 300 wide.
    As the Iphone will have a lower quality of image than a larger display, it will not matter too much if the 600x400 photo is scaled down, and having tried it by giving it an ID with CSS like
    #imagescale{ width:300px; } it looks acceptable. However, as IDs are supposed to be unique, then thats a no go area for the remaining photos.
    My problem is how do I select the second image source shown in bold above, and scale it and the span text by 50%.
    The text is not too important as it can be changed to fit - the image is the main problem.
    I need someting like "if the display is less than 600 and the image is in the pics directory, display it at 300 wide".
    The browser will hopefully  take care of the height.
    Any suggestiosn would be appreciated.
    Howard Walker

    Thanks Nancy. The general idea and the link to the article helped a lot.
    However, the css using using a percentage had unpredictable results when selecting repeated images.
    The first one scales to 50% and then the next scales to 50% of the last one (25%)  and so on ad infinitum, unless you click on another object that is not an image.
    Using a pixel size like 280px rather than a percentage did the trick, but it also involved changing lots of other items before I could get everything to fit.
    Now I have a better knowledge of media queries and how to set them up.
    Best of all, all my image galleries work fine just using css and html. Never thought that would happen.
    Take five stars!
    And the same to David Powers for his great article.
    Howard Walker

Maybe you are looking for

  • VPN problem behind ASA5505 -regular translation creation failed for protocol 50

    Dear All, I have to connect behind my ASA5505 with an VPN klient to an other site. First time i got this failure. "Deny protocol 50 src inside:192.168.50.X dst  outside:x.x.x.x by access-group "acl_in" [0x0, 0x0]" Than I opened our inside (src 192.16

  • Getting invalid content type for SOAP: TEXT/HTML exception for Soap Adapter

    I am trying to invoke Webservice using SOAP Receiver Adapter but I am getting error <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML</SAP:AdditionalText> Pls let me know Regards

  • SSL indicator disappears when page with video tag has been loaded

    I have a strange bug in Firefox, that was detected when site moved to SSL. There is single page site built on Backbone. When page with video tag loaded SSL indicator disappears. Firebug shows that Firefox create GET request connection to the server b

  • Transport binding consuming CICS WS

    I have been trying for more than a week to consume a WebService from an IBM CICS Transaction Server. I have tried with .NET, AXIS, and XML Spy. They all work. I have editted the proxy generated (standalone and deployable) in order to more or less mat

  • R/3 Transport

    Can someone give me the steps to transport my datasources for R/3 from Dev to QA and then onto PROD? Thanks, RG