CSS Hover Expand

I need to expand a section of my advert when it is hovered on

please see here: https://jsfiddle.net/u7kpc9jL/2/

I would like the bottom to align to the bottom of the advert and I also need to show different text when expanded.

Any ideas?

CSS

body {
    height:250px;
    width:300px;
    border:solid 2px;
}

.legal:hover {
    height:40px;
    width:250px;
    margin-bottom:20px;
    top:80px;

}

.legal-text {
    padding-top:2px;
    font-size:9px;
    color:#FFFFFF;
    font-family:Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-align:center;
}

.legal {
    height:17px;
    width:85px;
    background-color:#006fba;
    left:0px;
    top:100px;
    z-index:110;
    margin-top:233px;
}


Download css.hover.expand.zip
Direct Link


Download


Download css.hover.expand.zip
Mediafire


Download


Download css.hover.expand.zip
KEWLSHARE


Download

Both comments and pings are currently closed.

Comments are closed.