css - dynamically position element with Less -


i have div (div1) shows on hover of div (div2) right , bottom of (sort of tool tip). when div2 happens close bottom of screen, div1 goes off screen (completely or partially). there way position div1 top of div2 depending on div2 located , purely less, no javascript. maybe other ways, without javascript.

thank you.

with pure css not possible @ current moment. still can without javascript. ugly , not reliable. consider next line more sport interest actual advice. can achieve so:

  1. determine on server side how space there between div2 , end of html content. make sure data client device can (like width , height) somehow user agent , consider them in calculation.

  2. calculate sizes of div1. bit easier, think.

  3. generate appropriate css


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -