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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -