Click here to Skip to main content
15,883,978 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi there i cant figure how to do a "simple" layout fix:

if i have three div's containing image each one.
XML
<div1> <img src=""> </div>
<div2> <img src=""> </div>
<div3> <img src=""> </div>

i have in lined them to one row so now i can see :
XML
<div1><div2><div3>


if i zoom in the page or re size it this is what i see
XML
<div1>
<div2>
<div3>

my question is how can i prevent the "zoom" & "re-size" changing the site layout.

my goal is that for example: (after "shrink" the page from the right)
XML
<div1><div2><d 


i hope i have explained it right
thanks A LOT.
Posted

1 solution

You will have to use the window's resize event to deal with this. Check out the following links.

http://unstoppablerobotninja.com/entry/fluid-images[^]

and

http://api.jquery.com/resize/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900