Cless Posted April 22, 2009 Share Posted April 22, 2009 Well, I've used position: absolute; top: 100px; left: 50px, or variations of that, but if you change display resolutions, it screws up. Any fix? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/155186-position/ Share on other sites More sharing options...
jackpf Posted April 22, 2009 Share Posted April 22, 2009 You could use a relative position? Your div or whatever will be 100px from the top. Since it's absolute, it will be absolutely 100px from the top, no matter what the resolution is. Edit: or you could use a percentage. But that could vary depeding on the height of the page. Quote Link to comment https://forums.phpfreaks.com/topic/155186-position/#findComment-816397 Share on other sites More sharing options...
Cless Posted April 22, 2009 Author Share Posted April 22, 2009 Only problem is, when I tried to use a relative position, it would not allow for me to overlap that div/image with another div/image. Think of a video game map... the entire map would be the first image, and the character sprite would be the one to overlap it, using co-ordinates. Quote Link to comment https://forums.phpfreaks.com/topic/155186-position/#findComment-816422 Share on other sites More sharing options...
jackpf Posted April 22, 2009 Share Posted April 22, 2009 Hmm, I'm not really sure then. I shall leave this to someone more knowledgeable about css. Quote Link to comment https://forums.phpfreaks.com/topic/155186-position/#findComment-816427 Share on other sites More sharing options...
jcombs_31 Posted April 22, 2009 Share Posted April 22, 2009 Was there a first part of this that I missed? We'd need more information about your layout/html/css to even start looking at the problem. Quote Link to comment https://forums.phpfreaks.com/topic/155186-position/#findComment-816578 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.