Why no min/max height?

Since I've started creating responsive content with Edge, once thing has really bugged me - and that's the omission of a Min H and Max H alongside Min W and Max W. I've been told it's not necessary as height can be constrained to width, but I still find myself needing it.
Two scenarios I've frequently come across:
• An object is set to 100% width. When a window is resized to a landscape orientation, I want an object's maximum width dictated by it's height to prevent it taking up too much space in the layout. For example, in portrait layout it may be W100%, H10% - turn that to landscape and it might become W100%, H60% if I've constrained the proportions. I want to be able to cap it at say H30%, so after a certain point it's just the width that changes and not the height.
• I have a series of square images nested within a horizontal scrollable div. I want these images to stay in proportion but always fill to H100% of the container div, regardless of its shape (portrait, landscape). It seems to simple but I just can't make it work without a min/max H functionality.
Can anyone explain why this feature is missing?
Thanks

As you know, IE doesn't support min/max-height/width.
With regard to HEIGHT, you can work around IE's lack of support for min-height since the way that IE deals with an explicit height is as if it were min-height.  For example, if you have this CSS:
#foo { min-height:250px; }
you can *hack* a fix for IE like this -
#foo {
     min-height:250px;
     _height:250px;
The "_height" style is ignored by all browsers except IE<8.  For those versions of IE that 'read' that style, they interpret it as 'height' and since IE treats an explicit height value as if it were 'min-height' you are set.  Another way (and a cleaner way in my opinion) would be to add an IE conditional comment to the page, e.g.,
<!--[if lte IE 7]>
<style>
#foo {
     height:250px;
</style>
<![endif]-->
That takes care of min-height.
The solutions for max-height or min/max-width are not so simple.  Google for IE CSS calculations to see how you might approach them.

Similar Messages

  • Why can't firefox deal with percent max-height of percent max-height?

    I think this is possibly a bug.
    Firefox is not able to use percent max-height of a percent max-height. Chromium does. But it is difficult to explain. Please have a look at this fiddle, with firefox and chromium, you will see the different behaviour by resizing the browser window: http://jsfiddle.net/qx75g/
    I need this for my website but cannot use it, because it does not work with firefox :(
    ( archlinux with firefox 28.0 )

    Okay, so the page on MDN says
    <blockquote>The percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as none.</blockquote>
    https://developer.mozilla.org/en-US/docs/Web/CSS/max-height
    That seems to be copied more or less verbatim from CSS2 Level 1: http://www.w3.org/TR/CSS2/visudet.html#min-max-heights
    Which makes me think that it isn't like to change in the near future...
    Any reason not to set height:50% for .inner? How does leaving that unspecified benefit the layout?

  • Possible to set min/max size to a resizable Stage? If so, how?

    Is it possible to set a minimum and maximum size to a resizable Stage? If so, how would this be done? Do I use some kind of onResize event handler or is there some other way?
    Here is a sample code where I have a 500 x 500 px image in a 300 x 300 px scrollable scene that is in a resizable stage. Right now, I am able to resize the stage to any size, but I would like to limit the resizable minimum width and height to 100 x 100 px and limit the resizable maximum width and height to 600 x 600 px.
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.control.ScrollView;
    import javafx.scene.control.ScrollBarPolicy;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.Image;
    var scene: Scene;
    Stage {
        resizable: true
        scene: scene = Scene {
            width: 300
            height: 300
            content: ScrollView {
                hbarPolicy: ScrollBarPolicy.ALWAYS
                vbarPolicy: ScrollBarPolicy.ALWAYS
                width: bind scene.width
                height: bind scene.height
                node: ImageView {
                    image: Image { url: "{__DIR__}roses.jpg"}
    }

    Hi, I don't understand how WidgetFX is going to allow me to set min/max size to a resizable Stage. After all, it is a desktop widget platform and I'm not trying to build a desktop widget. None of the demos I've tried use a decorated Stage with platform decorations that can be used to drag and resize the Stage.
    I'm just trying to limit the min/max size of a resizable Stage. If you think WidgetFX will address my problem, I think a better solution is the JavaFX Stage Controller class I found available at http://code.google.com/p/memefx/. However, the JavaFX Stage Controller class still doesn't address the problem I have because it doesn't stop the user from dragging the Stage beyond the size restricted by the min/max height. It only reverts the Stage to the max size after the user already dragged and resized the Stage beyond the max resizable width/height.

  • Setting max-height with contain for bg image

    Hi , I currently have a simple image that I want to sit in the top right corner, however I would like it to scale so the whole image fills the right hand of the viewport (only if they make the viewport smaller than the original image though). The contain function does this job however it also scales the image upwards should the user go full browser which looks horrible. So my question is can I use ( background-size: contain;) but add a max-height line to it also. I have tried every combination possible but nothing. Im either doing something wrong or it cant be done.
    Site: http://www.stuartskelton.co.uk
    my css is:
    body  {
    margin: 5px;
    background-attachment: fixed;
    background-image: url(../images/neilquote.gif);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    Thanks for looking.

    You can't add a max-height to the existing rule, but you could use a media query to change the value of background-size like this:
    body  {
    margin: 5px;
    background-attachment: fixed;
    background-image: url(../images/neilquote.gif);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    @media screen and (min-height: 462px) {
        body {
            background-size: 55px 461px;

  • MRP creating cancel notices for min max purchased items

    We use min max planning for many repetitive purchased items. These same items are also set to MPS/DRP Planned as well. This is only so we can use the Planned Order report to identify material shortages to flow schedules.
    However, MRP exceptions is requesting we cancel our min max purchased items since there is no demand. Can MRP be modified to NOT include min max planning method in cancel requests?
    If not, where can I find a tool to identify material shortages for flow schedules?

    Many thanks for this.
    I can see entirely why it's designed as such, but I just find it slightly frustrating that there's no way to break the link between the order and the shipment out to the depot. Just to clarify, we're not requiring the orders to change - they will still be made and will come in - but just that the orders themselves don't specifically need to be the stock that is used for the replenishment.
    So -
    1. Min Max identifies depot needs replenishing.
    2. Central distribution does not have (enough) stock to replenish.
    3. Order is made to replenish central distributions stock.
    4. We ship whatever we've got, when we've got it, to depot to replenish.
    It's the bit where Min-Max is trying to replensih a specific depot rather than our central distribution centre that's my problem.
    I suspect that, as you say, that specific issue is not directly fixable without getting our IT contractors to do a customisation.
    I'm going to look into your Supply Date Offset suggestion now, though I'm not sure how this affects the shipping after the orders are placed. The orders themselves are approved manually after we've checked our stock position (i.e. what's in with the recycling team), but we recycle & refurb probably 60% of our maint stock so there'll always be kit turning up after the order has been made because of the long lead times.
    Thanks again.

  • Min-max report

    Hi,
    I have place a order for a item. Ordered quantity is 10. Order is closed. But when I run min-max report; i found that on-hand quantity is not change and also the demamd quantity 10 is not reflecting. It is showing some different number 8, i.e item demand quantity = 8. Please guide me Why it is so and how to overcome this issue?
    Also let me know the base table for this records.
    Thanks

    Hi Srini,
    Just look at "INV: Minmax Reorder Approval" profile option whether it helps you. You might have set this profile option to "Approved". Change the setting to "Incomplete" either at "Site" or "Responsibility (In which you run the min max planning report) " level.
    This would help you to create the min max requisitions in "Incomplete" status and then ask the requestors (or your store incharges) to review and approve the Purchase Requisitions!
    Regarding "Supply" consideration, I will check and let you know..
    Jay

  • Need some help with the DOF Min Max Planning Logic

    Hello All,
    Morning...could someone please help us with this issue which we are facing in our production system.
    We are running the Dof Min Max Planning Report at the Subinventory level and for a given item.
    This item setup in this sub inventory has the Min qty : 2 , Max qty :2.
    --We don't see any open orders/ requisitions in the system for this item.
    --We also don't see any expected receipts for this item coming to this org/subinventory.. All the shipment lines are in Fully Received status.
    --We dont see any stuck supply records in mtl_supply table as well..and also checked for the Inv Transactions interface tables as well ( MTI , mtl_material_transactions_temp)..we dont find any stuck transactions for this item, subinventory & org.
    Now when we are running the Dof Min Max report is is showing the Supply Quantity as 2 and Available Quantity as 2.
    Hence the Reorder quantity is coming as Zero..basically it is not re stocking the item again for this subinventory level.
    Could someone please assist as to what could be reason why this Supply Quantity is showing some value when we dont see any stuck supply / expected open receipts..
    What else we need to check here to get this issue resolved and to know the source of the Supply Quantity.
    thanks

    In the report run, what parameters are considered as Supply?, Also did you check the supply data considering your cutoff dates offset?, the item what you are talking about is a buy item? check if there were requisitions already created.

  • How to change the Charge Account in Requsitions Generated by Min-Max

    Hi
    I want to change the default account coming in all requsitions which are generated in result of a min-max report.
    please help.
    thanks
    Malik Asif Joyia

    What is your costing method?
    If it is average, the account comes from the organization and not from subinventory and you cannot change the account if the destination is inventory.
    If it is standard, you can have the account from subinventory, but again you cannot change it if the destination is inventory.
    Why do you want to change account if you are receiving into inventory?
    And Min-Max Planning is to replenish the inventory hence I would assume it is not expense destination.
    Thanks
    Nagamohan

  • Ring Control/Indicator Min/Max Values

    Is there a simple way to retrieve the minimum and maximum values of a Ring control or indicator?
    I'm not looking for "Data Entry Limits", so that hasn't been useful.  The only thing I've been able to do is use the "Strings And Values []" array, however even THAT is problematic, as it returns an array of clusters.  To use "Array Max & Min", I have to use a for loop to index the array, and create a new array of just the Values.
    Is there either a way to just get the Min & Max, or an easier way to get an array of the values?  Ring controls have both a "Strings []" and  "Strings and Values []" property, why don't they have just a "Values []" property?  Perhaps there's a way to UN-Index and UN-Bundle a Cluster Array?
    I'm using LabVIEW 8.5.
    Attachments:
    RangeTest.vi ‏15 KB

    I agree with you that a reverse of "index and bundle cluster array" could come in handy.  I am pretty sure that the way you are solving this problem is the best.  The only other way to solve it I can think of is to convert the array of clusters to a variant data type and then flatten this to a string and parse the string for the data.  This way is a  lot more cumbersome and does not get around having to use a loop.  Maybe someone else can think of a better way, I am interested to hear if there is.
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

  • Time phase Min/max replenishment models for future dates

    Hi,
    We are working on a safety stock requirement of Maximum/Minimum replenishment model in APO.
    It seems to work great except it cannot be time phased.  Our business wants different safety stock strategies at different times of the year. 
    Please suggest if there is a way that we could “time phase” min/max replenishment models for future dates?
    Thanks in advance for your help!
    regards
    Yogendra

    Many thanks for this.
    I can see entirely why it's designed as such, but I just find it slightly frustrating that there's no way to break the link between the order and the shipment out to the depot. Just to clarify, we're not requiring the orders to change - they will still be made and will come in - but just that the orders themselves don't specifically need to be the stock that is used for the replenishment.
    So -
    1. Min Max identifies depot needs replenishing.
    2. Central distribution does not have (enough) stock to replenish.
    3. Order is made to replenish central distributions stock.
    4. We ship whatever we've got, when we've got it, to depot to replenish.
    It's the bit where Min-Max is trying to replensih a specific depot rather than our central distribution centre that's my problem.
    I suspect that, as you say, that specific issue is not directly fixable without getting our IT contractors to do a customisation.
    I'm going to look into your Supply Date Offset suggestion now, though I'm not sure how this affects the shipping after the orders are placed. The orders themselves are approved manually after we've checked our stock position (i.e. what's in with the recycling team), but we recycle & refurb probably 60% of our maint stock so there'll always be kit turning up after the order has been made because of the long lead times.
    Thanks again.

  • [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

  • Reorder Planning vs Min Max planning

    Hi,
    In what business scenarios should we use:
    Reorder planning (ROP)
    Min Max Planning?
    We are implementing INV/PO for a bank where mostly expense items should be used. Also no manufacturing modules are used.
    So which planning will be recommended and why?
    Also, if re-order planning is suggested, share the set ups (with screen shots), as to how to set up & get the Requisition qty.
    Thanks,

    Hi,
    Reorder planning is like two bin system. When one bin is empty, the demand is fulfilled from the second bin while the replenishment order is generated for the first one. Reorder Planning uses Oracle Inventory forecasting information to calculate average demand.
    In min max planning, we maintain 2 levels, minimum and maximum. When the stock goes below the minimum level, the Requisition is created for the Qty =Max level - Qty already in PO/Req - On Hand.
    However, option is available while running min-max to include or not include Qty alrady in PO/Req.
    In min-max, the min-max levels have to be maintained manually and the demand forecast is not taken into account.
    Hope this answers the question.
    Atique

  • Showing advanced statistics for Custom Metrics (min/max/median)

    In my test project I'm able to add custom metrics but I can only view charts with the average value.
    (Tested today on the new Azure Portal https://portal.azure.com)
    I would like to see min/max value, the median or even specify ranges myself.
    Is that possible?
    Friedo

    Currently we have CTI ToolKit Supervisor Desktop which is working just fine, all agents are listed and agent monitoring is enabled. Only call recording option is not available here and this is the major reason why we are trying to find a way to list all agent statistics into the Supervisor Desktop application.
    Is this somehow even possible? Is there any way that we can start the cad services when user logged into the java app through the jtapi? Please share your experience it means alot to me.
    Is CTIOS Supervisor Desktop different than CTI ToolKit Supervisor Desktop?
    Thank you, Ema

  • Want to set Min Max for a material for PD MRP type

    Hi,
    I know Maximum stock level field in Material master MRP 2 view ? but where do i maintain minimum stock level? not procured?
    My client wants to set up his inventory with Min Max levels using MRP PD?
    Thanks and Apprecaites help.
    Regards,
    Siva

    Hi,
    If you want to maintain a Max and Min stock level, Maximum stock is shown straight away, you cannot find the Minimum field directly.
    if you want to use MRP type PD then go for safety stock that will be your minimum stock level
    or else use Re-order point planning, re-order point will be your minimum and Max-level as maximum.
    Thanks
    Satya

  • I do not have many messages but my iphone 5s says messages take up 4.6GB of space.  When comparing with friends who have many more message, less than 1 GB is being used on their phones.  Why are mine taking up so much space and how do I correct that?

    I do not have that many messages on my new iPhone 5s (maybe about 15 conversations and only one or two going back a little ways) yet when I go to Settings, Usage it shows that my messages are taking up 4.6GB of space.  When comparing with others (some who have hundeds of messages) they are using under 1GB for their messages.  Why are mine taking up so much space??

    I found a post with this solution that worked for me - .Do a backup, then download ibackupbot. It lets you look into the contents of that backup. Look in system files>mediadomain>library>sms>attachments. I found a ton of huge files related to long deleted texts. ibackupbot let me delete all that old crap. I then restored the phone with that now modifec backup and Bingo! freed up 9 GB. No problems.
    But note, if you are not technically inclined you probaly don't want to be digging around and deleting back up files. You delete the wrong thing and you could jack up your phone badly. Be careful.

Maybe you are looking for

  • Error in TSPITR

    Hi. i took my database fully backup and tablespace seprate backup and trying to restore but getting below error. 1. backup database; 2. backup tablespace raja. now my backupup piece name is 0MON9OAN_1_1,0NON9ODM_1_1,0OON9OEK_1_1 C:\Documents and Sett

  • How can I edit a post I've already posted?

    I saw a button that said "Edit this post." I clicked it and got a notice that I must log in before editing my post. I was already logged in. Completed the longin info again, but still kept getting the message that I had to log in first. Closed Safari

  • Where can i get a replacement part of  the wireless keyboard A1314

    I wonder if I  can  get some replacement part (capss lock keys) of the wireless keyboard at any apple store??

  • SDK Newbie issues....

    Hello All... I am new at SDK and am trying to develop a master data interface to store packaging types available to inventory. So far ive 1. installed the IDE tools for VS 2005 and generated a sample project 2. able to generate the interface in scree

  • Mountain lion update will not go away

    The update for Java OS X 2013-004 and Thunderbolt Firmware Update 1.2.  I have updated it 3 times and when restarted it still shows up in my updates and will not go away.  How do I fix this.