/    Sign up×
Community /Pin to ProfileBookmark

Layer position differs depending on screen resolution

I too have the same problem as Illufox but I did not understand the solution given by Fang.

So, Fang can you explain or anyone else? ?

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@FangApr 13.2009 — Post your code or preferably give a link
Copy linkTweet thisAlerts:
@nilankoauthorApr 13.2009 — See here :

[URL="http://cmtechy.co.cc"] imgMapObj = document.getElementById("imgMap");

imMouseX = mouseX - imgMapObj.offsetLeft;

imMouseY = mouseY - imgMapObj.offsetTop;[/URL]


It appears correctly in 1024x768 res. but not on other resolutions.?
Copy linkTweet thisAlerts:
@FangApr 13.2009 — Do you mean the whole site is centered in that resolution?

A quick fix would be:body {
position:relative;
width:1000px;
margin:auto;
}
Copy linkTweet thisAlerts:
@nilankoauthorApr 14.2009 — WOW!!

Awesome! You are really a CSS guru.Thanks, you solved my problem in a second and I kept on trying for 24 hrs before that!?
×

Success!

Help @nilanko spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...