Overlap border of parent with h2 margin negative

前端 未结 4 1083
旧时难觅i
旧时难觅i 2020-12-03 20:22

I want to achieve this effect: \"enter

but with image background. I tried everything

4条回答
  •  死守一世寂寞
    2020-12-03 20:51

    The solution I can think of is having it all in a table with three columns, top left and top right td can have a border-bottom: 1px solid.. and the middle td can have no bother, with the text either relatively placed or with negative margin so that it's vertically in the middle between the border-top (or border bottom) of the left and right TDs, maybe something like:

    ...
    

    提交回复
    热议问题
    text