How to place a span over an image

I have this code : I would like to place the span element menu_labelon top of the image, not the bottom.

I don’t know why he starts to get the upper and left parts from the bottom of the container (that is, with the class menu).

Any ideas?

+4
source share
5 answers

Change position to menu_labelabsolute and add position:relativetomenu

http://jsfiddle.net/uc8jc/2/

+13
source

Use position: absolute; for range, not relative

+4
source

, , position: relative.

:

position:relative; top:50px; left:5px;

50 , , , - 5 , .

+2

position:absolute position:relative

: CSS 101

+2
source

Add position:relativecontainer and position: absoluteto .men_label.

Here is the code:

.menu{
 position:relative;
}
.menu_label {
 position: absolute;
 top: 85%;
 left: 5%;
}
0
source

All Articles