javascript - Relative position issue -
an element position: relative;
positioned relative normal position.
setting top, right, bottom, , left properties of relatively-positioned element cause adjusted away normal position. other content not adjusted fit gap left element.
here source: css positioning
now,how can make relative position work viewport , adjust accordingly setting height,width etc fixed position. possible in css or not? if not how can do?
check fiddle
try it:
div{ position: relative; top: 450px; left: 651px; width: calc(100% - 651px); float: left; }
you can use javascript or jquery it.
Comments
Post a Comment