Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jun 2012
    Posts
    134
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Proper CSS for object needed

    http://mroldies.net/showtable.php?year=1960

    You will see the image below the player is chopped because the box holding the player won't expand as expected.
    I have both the object container and the box container set to overflow:hidden.
    Yet nothing happens when the second image is inserted.

    What do I need to make it so the box expands as needed?

  • #2
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    You set it so anything that overflows will be hidden, but you don't want it hidden? Try "auto" instead of hidden.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #3
    Regular Coder
    Join Date
    Jun 2012
    Posts
    134
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Are you aware of the functional differences? Auto means to turn on the scrollbars if needed. I do not want that.
    Hidden means to ensure that the content remains in the box.
    Obviously, the object tag has some peculiar properties I am not aware of.

  • #4
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,338
    Thanks
    29
    Thanked 282 Times in 276 Posts
    Quote Originally Posted by Suwannee_guy View Post
    What do I need to make it so the box expands as needed?
    object (and iframe) elements do not automatically expand to accommodate the dimensions of content without intrinsic dimensions. HTML documents don't have instrinsic dimensions.

    The behavior you seem to be looking for will be attainable in the future via an HTML5 iframe element with a seamless attribute specified. This attribute is only supported in Google Chrome at the moment though, and support is missing for auto-expansion behavior even in that browser right now. (As far as I can tell, all Chrome 27 does is remove the default border of an iframe with a seamless attribute specified.)

    Given that your framed content is controlled by you and on the same server, you shouldn't be using an iframe element in the first place though. Just put the framed code on the host page.

    Quote Originally Posted by Suwannee_guy View Post
    Hidden means to ensure that the content remains in the box.
    overflow: hidden truncates overflow content at the edge of an element (and doesn't provide any scrollbars to get to that content). It doesn't "ensure that the content remains in the box" in the fit-to-content way that you seem to think it does.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #5
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    Quote Originally Posted by Suwannee_guy View Post
    Are you aware of the functional differences? Auto means to turn on the scrollbars if needed. I do not want that.
    Hidden means to ensure that the content remains in the box.
    Obviously, the object tag has some peculiar properties I am not aware of.
    Yes, I am aware of the difference, but I don't think you know what "hidden" means. It doesn't mean "not hidden and expanded" as you seem to think. Since you wanted to constrain it and still see it then scroll bars are made for that purpose.

    If you don't want scroll bars and you want "hidden" to mean "not hidden" then I'll let someone else help you. Good luck.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #6
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try "auto" instead of hidden--ppbuy.com


  •  

    Posting Permissions

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