Jump to content

[SOLVED] Display value, when position:absolute


coolpro

Recommended Posts

1) At first display was none, i use javascript to display it when the event happens, and i use clientX and clientY to use absolute position in window. Of course, first i have to change display:none to other value. Is it big difference between using display:inline or display:block in my case? If not, why?

 

2) What is the difference between position:fixed and postion:absolute?

 

Thanks for answers

Link to comment
Share on other sites

1) Maybe. You haven't given us enough information to say.

2) position fixed means that it will stay in the same position even if you scroll down on the screen. Position absolute means it will stay wherever you position it, but won't scroll.

 

Why don't you try these things out and see for yourself? It's usually easier than asking.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.