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

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -