Max-width Ignored on fo:block and fo:block-container

I am writing an XSLT template using XSL-FO and I have an fo:block for which I want to limit the width. I set the property max-width to "3in" on the block, and that did nothing. Then I put the block into an fo:block-container and set the max-width property of it to "3in", and this was also ignored.
Is this a bug in the rendering engine or am I doing something wrong?
The block is in an fo:static-content.
Thanks,
Kurz

I'm not exactly sure I get what you intention is, but here are a few things to consider maybe.
max width will not make the image expand, just keep it from being any wider than the max width.
images by default display as in line. To make a width property work reliably, you will need to set it to block:
div#secondaries ol.secondary li div.item-img img {
display: block;
width: 100%;
image width as set above will be affected by its containers. (If you meant to limit the width of the image rather  than to resize it, the same thing should still be true of a max-width  on the image, though cross-browser support will be unreliable.)
The relevant container for the case above is:
div#secondaries ol.secondary li {
font-size: 1.1em;
width: 30%;
margin-top: 0em;
margin-bottom: 1.5em;
margin-left: 0em;
So do you really mean it to be 30% or did you mean 100%.

Similar Messages

  • Bug: Null Element Width and Max Width on page item won't stay null (v3.0.1)

    Well, it's pretty much what it says. I'm trying to edit a page item and remove the width and max width on the Element properties. When I remove them and hit apply it functions properly, and the page item shows up with no width or max width property set. However, if I go to edit the page item again, the Width and Max Width fields are populated (30 and 2000 respectively) again. Thus, any action which saves the item will save the unwanted values. I don't want a width and a max width on the item; it shouldn't put them back.

    I think default values should only be used in a
    situation where no value has previously been
    provided.
    How can I tell the difference between the case where
    I fetch a null value from the column because a null
    value was previously saved and the case where "no
    value has previously been provided"?Well, I would assume that there is something unique about the initial creation of an item versus the editing thereof (e.g. the item does not exist in the database, yet). It's only on create that you would want to provide default values, that is, when no value has previously been provided by the user. Any other time the item is edited, it already exists and any values submitted should not be overridden or replaced. Off the top of my head, this could be done with table level defaults (if all item types were to share the same defaults for all properties), or via an insert trigger. Either way, the defaults would only be applied on create, and not on edit.
    Message was edited by:
    CaptSimian

  • CSS max-width problem

    I have two div backgrounds on the left and right side of  a content wapper div that will contain the web content. I have set the  body max -width to 1330px. All three divs are contained in one div (bkgnd) - It has a light blue color. The problem is that when the monitor size is extended beyond 1330px the right background image drifts to the right beyond the max size. It doesn't matter if I use percentages or key words to fix the right image - it just keepd drifting as youextend the page. I thought that it would only extend to the max width or to the right side of the container div but it doesn't. What am I doing wrong or how can this be fixed?
    If I have to make the divs smaller so that you can see the problem let me know.
    The file can be found at http://www.wlvs/Htest.html and the css file is http://www.wlvs.com/home.css
    TIA
    John

    An interesting alternative but most ofthe folks I'm setting this up for are still on IE8 and it doesn't work there at all. I am still trying to solve the problem and have reduced the problem to positioning and have changed the links for a better view of the problem and hopefully find a solution.
    Here are two new links:
    http://www.wlvs.com/problem.html    http://www.wlvs.com/problem.css
    What I am trying for is to have images on the sides of the content div so when someone is on a large screen monitor there is something to the sides. In this example I am only working with one image though to view the problem.  Normally I would not give a fixed width to the background div or divs but I did in this example to illustrate the problem I'm having. When you go to the html file you will need to reduce the width of your browser screen to probably half or less of the monitor width. You will need to keep minimizing the screen width to see the image come into view. I have a fixed width background div (.pain) with a hidious blue color to stand out and show that it has a limited expansion and an background image position on its right bottom - it is fixed.  So why does it drift beyond its container div when you expand the width of the viewing area toward the monitor edge. If it is fixed to the bottom left of div class="pain" why does it drift away from it and how can that be corrected so that it does not go beyond the right edge of the container div?? This file is a much more simplified version of the previous one and more clearly shows the problem. Thanks for your patience...

  • Images are no longer scaling with (img {max-width: 100%; }) in css as of update 34.0.5 in firefox, this still works great in IE and chrome.

    My website worked great until firefox update 34.0.5. Now the images will not scale to fit the box anymore. I am using flexbox so that the site scales to fit the size of the browser. In css I set img {max-width:100%;} and this would make the jpg files automatically size to fit the box they were in, but not anymore as Mozilla has really screwed this up with update 34.0.5. My site still works great with IE and Chrome but 70% of my web traffic is using firefox so I really would like this to work in firefox.
    Any help is greatly appreciated!

    I had the same problem, and this worked for me:
    img {max-width:100%; width:100%;}

  • Why does Live View not work with the following: @media only screen and (max-width: 480px)?

    When I use the above media query in my stylesheet Live View ceases to update the viewport.  I have to update it manually each time I add or change a style.  This is not the case when I use styles under a common tablet sized query @media only screen and (max-width: 768px), or when there is no query at all.  Is this a bug or is there something I am missing here? 

    Code errors might account for the discrepancy. Validate your code and fix any reported errors.
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Nancy O.

  • Using PNG format with max width without clipping top and bottom of image?

    I am using PNG format to preserve the transparency and drop shadow I am trying to incorporate to give the illusion that this slab object is floating above the other layers.  I first tried file>place to position the menu object on edge of header/beginning of content.  Doing that leaves no options to force the image to span the width of whatever screen.  I need that so I've tried using object>fill> and then clicking the max width of the rectangle (which does solve the max width problem), but I am now dealing with a clipping problem of the top and bottom of the image.  The next thing I can think of is to go back to Photoshop and distort the image so it isn't as tall.  I feel there has to be a simpler way to accomplish this that won't also give my image a unnatural look.  Thoughts?  Thanks in advance.

    Thanks, that helps.  I also found that I cropped to much of the canvas.  After increasing the canvas area AND setting to fill all is well now.  I think your suggestion may help with the scrolling affect problem I'm having when using different resolutions. I am going to try to set the size in one dimension (height) so that different resolution screens see the same scroll actions.  Thanks Mylenium!

  • IPhoto 4.0.3 ignores max width/height for export to web page

    I just exported a simple page of 6 photos (3 columns) with the default image Max width and height values of 640x480. It did not seem to pay attention to these numbers, because the images produced were 853x639. The thumbnails however were the correct size according to the thumbnail Max width and height values.
    Has anyone else experienced this and/or have a solution? Thanks!

    Run Disk Utility and repair disk permissions. If that doesn't help, try moving iPhoto to the desktop, duplicate it (Command-D), move the copy to the Applications folder and rename it to just "iPhoto". Now try it. Other than that you might have to reinstall iPhoto and re-update to 4.0.3.
    If you have to reinstall you'll have to delete the current application and all files with "iPhoto" in the file name that reside in your HD/Library/Receipts folder beforehand.
    OT

  • Hi ,  max width of smartform and script

    hi
    i would like to know the max width in cm one can give in smartform and script .
    is it possible to give more than 20 cm
    thanx

    Hello Rocky
    You can put the witdth depending of your size paper. You should  have that in order to know a window width.
    Dont forget to reward
    Gabriel P

  • How do i get the max width and height?

    Hey
    I want to get the max width and height, so my desktoppanes size can be set automatically.
    I know i should use getBounds but i cant find a concrete example on goole, on how to use it.
    Can someone point me in the right direction, with an example?

    Ok, assuming you want to get the screen resolution, i.e. 1024 x 768.
    You will need these imports:
    import java.awt.Dimension;
    import java.awt.Toolkit;and this line of code:
    Dimension myScreen =  Toolkit.getDefaultToolkit().getScreenSize() ;You can now use myScreen.width and myScreen.height to access the height and width of your screen's resolution. (width = 1024, height = 768 in my case)
    Hope this helps,
    Stern
    Edited by: Stern on Apr 13, 2008 6:49 AM

  • How can I specify figure width percent in a div and still default to 100% width on small media

    In fluid grids, I want a div that will display a figure and figure caption within a box where I can specify the float (left, center or right) and the percent width that defaults to 100% width below some display size. I would like this div to display correctly on all browsers and as many Internet Explorer versions as possible.
    This appears to work fine in my fluid.css:
    .myfig {
                background-color: #DAE7F1;
                border: medium solid #000;
                padding: 4px;
                margin: 4px;
                text-align: left;
                 width: 33%;
    /* On phones and vertical tablets make all figures 100% wide */
    @media only screen and (min-width: 0px) and (max-width: 700px) {
        .myfig {
            width: 100%;
    and my test.html:
    <div class="myfig" style="float:right;" >
       <img src="Images/time-to-adapt.jpg" alt="stuff">
       Figure caption
    </div>
    But if I put the width in
    <div class="myfig" style="float:right; width: 50%;" >
    The figure will be 50% so this overrides the default 33% but the figure does not revert to 100% for small media.
    I assume the problem is in the order of processing. Anyone know how to make this work or of a definition that will meet my needs?

    Use CSS classes.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5, 3-figures</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <style>
    /**put this into your CSS Reset**/
         box-sizing: border-box;
         -moz-box-sizing: border-box;
         -webkit-box-sizing: border-box;
         margin: 0;
         padding: 0;
    img {
         width: 100%;
         vertical-align: baseline
    body {
         font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
         font-size: 100%;
         background-color: #536475;
         margin: 0 auto;
         padding: 0;
    section {overflow:hidden;}
    figure {
         float: left;
         padding: 2%;
         text-align:center;
         color:#FFF;
         font-size: 95%;
    /**re-usable classes**/
         .twenty {width:20%}
         .forty {width:40%}
         .sixty {width:60%}
    /* Special Rules for Mobile, Tablets */
    @media only screen and (max-width: 768px) {
         figure, .twenty, .forty, .sixty  {
              float: none;
              display: block;
              margin: 0 auto;
              width: 98%;
              font-size: 75%;
    </style>
    </head>
    <body>
    <section>
    <figure class="twenty"><img alt="description" src="http://placehold.it/200x125"><p>Fig.1</p></figure>
    <figure class="forty"><img alt="description" src="http://placehold.it/200x125"><p>Fig.2</p></figure>
    <figure class="sixty"><img src="http://placehold.it/200x125" alt="description" ><p>Fig.3</p></figure>
    </section>
    </body>
    </html>
    Nancy O.

  • How can I have a fluidarea with max width set?

    I have a design where I want a div with the background set to full width - hence 100%
    <div id="ContentArea" style="width:100%;background-color:#F55; >
    <div id="FIXEDCOLUMN" style="width:60px; >
              some content goes here
    </div>
    <div id="FLUIDAREA" style="width:MAX900;background-color:#FFF; >
              some content goes here
    </div>
    </div>
    I want to be able so set the div FLUIDAREA to a max width of 900
    I want FIXEDCOLUMN to the left of FLUIDAREA (using float left or something)
    I want the columns FIXEDCOLUMN and FLUIDAREA to be centred within the ContentArea (setting margin width to auto I assume???)
    How can I achieve this?
    Do I need another div around these to max 960 to wrap them up?
    Thank you.

    As simple as that!!!
    Hmmm.
    I've been searching with google for that but getting all sorts of answers.
    Thank you for all your help.
    Terry

  • How to Display Query Results in a Max Width Formatted Way?

    Hi,
    I want to run a query to show the columns within headers to be formatted in a way that looks equal in width. I just want to get the max width for each column and display each item in a max width format in a query. Thanks.
    Ex.
    First Name Last Name City
    John Sumi New York
    Jay Heely Texas

    if you are spooling a file on sql*plus use the column formatting method.
    syntax:
      COL <column_name> FORMAT a<integer>example:
      COL emp_name FORMAT a40

  • Max width css not working in ibooks

    When i add max width in epub and render it in ibooks is now working i dont know why

    vertical-align doesn't work like you think it should. Read this page:
    http://phrogz.net/CSS/vertical-align/index.html

  • Why is my container div expanding past the 1170px max width in preview mode?

    Why is my container div div expanding past the 1170px max width in preview mode?
    Thanks again,
    Marc

    #wrapper #leftside img {
    float: left;
    width: 399px;
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Ruby7829" <[email protected]> wrote in
    message
    news:gdkr52$m6b$[email protected]..
    > I'm trying to get the image on my homepage (which is 320
    x 214) to sit
    > inside
    > my "leftside" div (which is 380 width). Why is it
    expanding to 380 px if
    > I put
    > it in it's own div which is 320 px? What am I doing
    wrong? Should I not
    > have
    > nested divs?
    >
    > Originally I sliced the leftside out of Fireworks but
    I'm really trying to
    > learn CSS and I want to do this the "right" way.
    >
    >
    http://www.faceyourspaceorganizing.com/test_index.html
    >
    >

  • [svn:fx-trunk] 13276: Min/ Max size fixes for AIR Window and WindowedApplication.

    Revision: 13276
    Revision: 13276
    Author:   [email protected]
    Date:     2010-01-05 07:18:31 -0800 (Tue, 05 Jan 2010)
    Log Message:
    Min/Max size fixes for AIR Window and WindowedApplication.
    AIR won?\226?\128?\153t allow you to set the min width greater than the current max width (same is true for height). You also can?\226?\128?\153t set the max width less than the current min width (same is true for height). The code that sets nativeWindow.minSize and nativeWindow.maxSize has been modified to take this into account.
    QE notes: None.
    Doc notes: None.
    Bugs: SDK-24566
    Reviewer: Corey
    Tests run: checkintests, apollo/spark/components/Window.as, apollo/spark/components/WindowedApplication.as, apollo/Window, apollo/WindowedApplication
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24566
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as
        flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/Window.as
        flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/WindowedApplication.as

    THank you , Nancy. Appreciate the input.
    So instead of this:
    <a class="brand" href="index.html"><img src="../img/logo-ca.png"alt="Consumers Advocate Review"> </a>
    Would it be something like this?:
    <a class="brand" href="index.html"><img src="http://ConsumersAdvocate/img/logo-ca.png"alt="Consumers Advocate Review"> </a>
    And if I do that, is there a way to cope with that locally so that DW can still display the images?
    jeff

Maybe you are looking for

  • Cannot find wireless printer, Deskjet 2540 after we got a new internet provider

    I  turned off the laptop, my ipad, my printer, even my router, still doesn't work. I went on the HP SCAN AND PRINT DOCTOR, it kept saying that cannot find printer.  Then I deleted the printer in my computer HARDWARE, try to search for the printer, it

  • Error while testing the CIMClient Test in SLD Data Supplier

    Hi Experts, I am setting my SLD Data Supplier in Visual Administrator. I had filled the host/port/user/password information for both "HTTP Settings" and "CIM Client Generation Settings". Now, when i click on the "CIMClient Test" button, its getting a

  • File to Http Scenario

    Hello All,         My Requirement is File to HTTP Scenario Where i would read a  xml file and send the data to webpage using Http receiver adapter. what are the steps for this scenario.  How to configure Http adapter. Thanks

  • Where are the updates located for Mac App Store app?

    Hi, where are the updates located for Mac App Store app? I don't think /Library/Updates is the only location. Because I'm now having 10+ of Apps reporting updates is needed, but only 1MB+ files is located in /Library/Updates. Please help!

  • NAC best practices

    Hello -- Is there a best practice doc that explains how best to deploy NAC? Also, is it possible to deploy the NAC agent remotely? Please let me know. Thanks, Ohamien