Using jQuery to change div width from 50% to 70% on hover
问题 I have two divs that have 50% width each. I want to make it so that the the hovered div expands to 70% and the other reduces to 30%. And when the mouse moves out, they both return to 50% each. I wrote a script but it doesn't give the right results. The widths are fluid so they need to adjust to all window sizes. how Can I make this work right? I didn't write the mouseout function yet as the mouseover doesn't function correctly. Here's how it works now: http://jsfiddle.net/kYZyp/ Here's my