html - Image resize in CSS hover -


I have to scale the image to zoom in on it, it should be increased from 100x75 pixels to 300x225 pixels. The layout seems to work fine, it's not just hovered until the width is already done, thank you very much.

CSS:

 . Hoverbox a .preview {display: none; } .hoverbox A .preview img {display: inline; }. Hoverbox a: hover .preview {display: block; Status: Completed; Top: -1 AM; Left: -2EM; Z-index: 10; Threshold width: 1px 1px 6px 1px; Border-style: solid; Border-color: #FFFIE; Boundary-radius: 3px; -max-boundary-radius: 3px; -Vibit-boundary-radius: 3px; -Moz-box-shadow: 2px 2px 2px # 161615; -WebKit-Box-Shadow: 2px 2px 2px # 161615; Box-Shadow: 2px 2px 2px # 161615; } .horbox emg {background: #fff; Threshold width: 1px 1px 6px 1px; Border-style: solid; Border-color: #FFFIE; Boundary-radius: 3px; -max-boundary-radius: 3px; -Vibit-boundary-radius: 3px; -Moz-box-shadow: 2px 2px 2px # 161615; -WebKit-Box-Shadow: 2px 2px 2px # 161615; Box-Shadow: 2px 2px 2px # 161615; Padding: 2px; Vertical-alignment: top; Width: 100px; Height: 75px; }. Hoverbox Lee (background: transparent; Display: Inline; Swim left; Margin: 3px; Padding: 5px; Status: Relative; } .hoverbox .preview {width: 300px; Height: 225px; }   

HTML:

  & lt; Section & gt; & Lt; H1 class = "headline" & gt; Fist your eyes & Lt; / H1> & Lt; Ul class = "hoverbox" & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; & Lt; Img src = "200opt.jpg" alt = "descr" /> & Lt; Img src = "200opt.jpg" alt = "description" square = "preview" /> & Lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Section & gt;   

Thanks

Take a look at this approach: Jquery: $ ('' '' '' '' '$' ');} ($ 500) function () {// set default image width and height $ (this) Wide ('400px'); $ (This) .ite ('300px');})



Comments