...
...">

Mouse over / Mouse over DIV

I have the following column structure:

       <div id="outerwrap">
            <div id="innerwrap">      
               <div id="centerc">...</div>          

               <div id="rightc" style="font-weight:bold">
            </div>
            <div style="background-color:White;height:10px;top:284px;left:0px"></div>

            <div id="leftc">..</div>
       </div>
       <div id="footer"">...</div>

    #outerwrap
    {
       background-color: #EE44E7;
    }

    #innerwrap
    {
       background-color: #EE44E7;
       margin-right: 200px;
       top:0px;
       height:100%;
    }


    #leftc
    {
       position: absolute;
       top: 111px;
       left: 0px;
       width: 197px;
       background-color: #EE44E7;
       font-size: 10px;
    }

    #centerc
    {
       position: relative;
       margin-left: 199px;
       padding: 0px;
       background-color: white;
    }

    #rightc
    {
       position: absolute;
       top:111px;
       right: 0px;         
       width: 199px;
       color: blue;
       background-color: #EE44E7;
       font-size: 10px;
    }


    #footer
    {
    padding: 0px;
    margin: 0px;
    width: 100%;
    height: 62px;
    visibility: hidden;
    }

      

What I'm planning to do is load the page with the left div (div id = "leftc") in a semi-visible state. For example, just showing 10% div. When the user hovers over it with the mouse, the div should expand to its normal level, when the mouse is displayed, it should return to its semi-declared state. Kinda auto-hide behavior

How can I achieve this best across multiple browsers and with jQuery or CSS?

0


a source to share


1 answer


A simple solution would be to use the jQuery height method , but that can mess up your layout if you're not careful with the HTML that's inside #leftc. Overflow: hidden can help here.



You can use css clip property plus jquery hover . Move the mouse cursor over the mouse, apply the clip. If you want to animate it (which is the next brilliant progression :)) then there is a jQuery plugin for that as well .

+1


a source







All Articles