javascript - jQuery animate to screen using (x)% -


i running little problem in want space out div div (x)px.

currently have original div @

left: '30%'; 

but want second div be

left: '30%' + (width of first div) + (5px of border space); 

currently can't work since percentage can't added px value (i believe).

just wondering if there way around this, easy understand. thanks!

yes can added. use calc()

demo

left: calc(30% + 250px + 5px); /* assuming width of div 250px;*/ 

edit: op needed animation. demo


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -