New Landing How can we help? Themeforest Theme Support Joyn RAW HTML – Div Height – not taking into account max-height

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Joyn
  • #183374
    barefootMarc
    Member
    Post count: 174

    I needed a rollover/hover fade button to link out of the page. I want one image to span the row and shrink and grow but maintain it’s proportions.I can do this with an image, I would assume a div would be no different.

    I have tried a variety of manipulations.

    It was my understanding that by declaring width, the height of the div would automatically adjust to the content. If I do that, the div is a pixel high at best.

    How can I get a div to adjust in width and height, like an image.

    Thanks,

    Marc

    My CODE
    /*——————————-*/

    #cf {
    width:1920px;
    height:465px;

    }

    #cf img {
    position:absolute;
    left:0;
    -webkit-transition: opacity .500s ease-in-out;
    -moz-transition: opacity .500s ease-in-out;
    -o-transition: opacity .500s ease-in-out;
    transition: opacity .500s ease-in-out;
    }

    #cf img.top:hover {
    opacity:0;
    }

    #clickableArea {
    cursor: pointer;
    display:block;

    }

    .servicesHeight{
    max-height:465px;
    }

    /*——————————-*/

    #183565
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Are you talking about this page? http://f62.6a3.myftpupload.com/services/

    You already have the rollover effect.
    Can you explain further what is wrong in what you are trying to achieve? A screenshot will help.

    Thanks

    -Rui

    #183639
    barefootMarc
    Member
    Post count: 174

    Thanks,

    Yes the roll over effect works. The issue is when you reduce the width of the browser window. The height of the roll over div does not shrink. This makes sense because i have set it to 465px, the only reson it is set to a firm 465px is because if i use max-width 465, it does not show the div at all.

    #183642
    barefootMarc
    Member
    Post count: 174

    here are two examples
    one the height of the div is too large, the other the content expands beyond the divs viewable area.

    Attachments:
    You must be logged in to view attached files.
    #184657
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    Sorry for the delay, just checked here and it’s working fine for me – are you still having the issue?

    – Ed

    #184667
    barefootMarc
    Member
    Post count: 174

    thanks for getting back to me. I was able to adjust the css accordingly.

    Thanks.

    -M

    #184871
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok great 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register