html - How to scale image out of div? -


I am trying to scale the image on the hover using CSS,

this is my Code is

HTML:

  & lt; Div class = "cli-wrap" & gt; & Lt; Ul class = "clearfix" id = "ci-list" style = "width: 2640px;" & Gt; & Lt; Li style = "margin-left: 0 pixels;" Class = "zoomage" & gt; & Lt; One goal = "_ blank" href = "#" & gt; & Lt; Img border = "0" src = "image / 1.png" & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li style = "margin-left: 0 pixels;" Class = "zoomage" & gt; & Lt; One goal = "_ blank" href = "#" & gt; & Lt; Img border = "0" src = "picture / 2.png" & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li style = "margin-left: 0 pixels;" Class = "zoomage" & gt; & Lt; One goal = "_ blank" href = "#" & gt; & Lt; Img border = "0" src = "picture / 3.png" & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li style = "margin-left: 0 pixels;" Class = "zoomage" & gt; & Lt; One goal = "_ blank" href = "#" & gt; & Lt; Img border = "0" src = "picture / 4.png" & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li style = "margin-left: 0 pixels;" Class = "zoomage" & gt; & Lt; One goal = "_ blank" href = "#" & gt; & Lt; Img border = "0" src = "image / 5.png" & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li style = "margin-left: 0 pixels;" Class = "zoomage" & gt; & Lt; One goal = "_ blank" href = "#" & gt; & Lt; Img border = "0" src = "image / 6.png" & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li style = "margin-left: 0 pixels;" Class = "zoomage" & gt; & Lt; One goal = "_ blank" href = "#" & gt; & Lt; Img border = "0" src = "picture / 7png" & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt;  

CSS:

 . Zoomi: Hover IMG {-bbkit-transforms: scale (7.10); / * Safari and Chrome * / -Moz-Transform: Scale (7.10); / * Firefox * / -mms-transforms scale (7.10); / * IE 9 * / -o-transform: scale (7.10); / * Opera * / transform: scale (7.10); Z-index: 1; } .cli-wrap {display: block; Margin: 0 auto; Hidden flurry; Padding: 40px; Width: 620px; Z-index: -1; }  

The image here is scaling on the hover, but the image is being scaling inside the div .cli-wrap. The image is scaling large, but it is only scaling within the div but I need to scale the image out of the system. I tried to use the z-index for div .cli-wrap

< P> How can I do this?

I have achieved this result in a more simple way:

Instead:

 . Zoomi: Hover Img {-VBKit-Transforms: Scale (7.10); / * Safari and Chrome * / -Moz-Transform: Scale (7.10); / * Firefox * / -mms-transforms scale (7.10); / * IE 9 * / -o-transform: scale (7.10); / * Opera * / transform: scale (7.10); Z-index: 1; }  

I did

 . Zoom: Hover {width: 1848 pixels; / * Here are some levels, you have chosen what you want here, i.e. scale down image * /}  

Hope this helps!


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -