Jump to content

positioning an image


Recommended Posts

take a look at this fiddle....I have placed an image(it is a blue arroe) in the mails menu item with a class name of show_inf....

Despite positioning it absolute it appears inside the the user_stats menu item(I cannot understand why it appears there)....I want it to appear inside the mails menu item as depicted in the HTLM-which is it's parent element anyway.


What is wrong here?

Link to comment
Share on other sites

let us clarify some things....take a look again at the HTML of the fiddle....the image is placed inside the mails menu item...the problem is that it appears in front of the user stats menu item.

I do not want that of course...so how can I fix it?

Link to comment
Share on other sites

11 hours ago, Ingolme said:

That depends on where you want it to appear. The code you write does exactly what you tell it to do.

I don't know what you want, so I can't tell you how to do it.

I am finally getting it...a parent element is different from an ancestor somehow...there is an overlap though in some cases.

here is what I want to do:

When the user clicks a menu item I want the arrow to appear directly below that menu item.

Now clicking the mails(I do not use a click handler in the fiddle,a placed the arrow image inside a menu item just for demo purposes so as to find the problem) item the arrow appears somewhere else....

What do you propose?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...