Responsive images positioned over image

后端 未结 1 1039
醉话见心
醉话见心 2020-12-13 16:13

I have setup a jsfiddle of what i\'m trying to do:

http://jsfiddle.net/MgcDU/3936/

#counter {
    position: relative;
}
#over {
    position:absolute         


        
相关标签:
1条回答
  • 2020-12-13 16:38

    Set your #counter div to display: inline; or add a wrapper with display: inline; and set the max-width of #over to for example 10% (DEMO):

    #counter {
        position: relative;
        display: inline;
    }
    #over {
        position:absolute;
        left:33%;
        top:43%;
        max-width: 10%;
    }
    
    0 讨论(0)
提交回复
热议问题