Jump to content

Recommended Posts

i know i can hide and display when user move his mouse over a div tag using its style ( display:none , block ) .but when i made my first menu in my web site i didnt know how to control the position of the div tag .so i had to give every tag a fixed ( absolute ) position ex: x= , y=and i had to add a function that change each tag position when the user re-size the window , but this didnt solve every thing .how can others handle this issue so the menu for example remain next to the div tag that display it ,even when the user scroll the page up - down , right - left ?any easy examples , tutorials ?

Link to post
Share on other sites
i know i can hide and display when user move his mouse over a div tag using its style ( display:none , block ) .but when i made my first menu in my web site i didnt know how to control the position of the div tag .so i had to give every tag a fixed ( absolute ) position ex: x= , y=and i had to add a function that change each tag position when the user re-size the window , but this didnt solve every thing .how can others handle this issue so the menu for example remain next to the div tag that display it ,even when the user scroll the page up - down , right - left ?any easy examples , tutorials ?
Sounds like you've already identified that the problem is the absolute positioning--I think you'll need go back and rework it to use relative positioning to fix this problem. http://www.w3schools.com/css/css_positioning.asp
Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...