css background image positioning (negative position?)

后端 未结 4 1756
花落未央
花落未央 2020-12-17 01:13

I\'m trying to add an icon which sits on top of the border, splitting it in half.

Here is what I have so far:



    

        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-17 01:45

    The background image is within the box so moving it outside is not feasible like this. What you could do is position your image outside of the box and move it into it.

    You can try something like this, it's not foolproof but can get you some of the way there.

    
    
            
            Untitled Document
            
    
    
            

    This is a test!

提交回复
热议问题