I have some tabs, which look like these boxes: I would like to remove the border top of box 2, only in the first 100px so that it looks like the box has a single border.
Does anyone know how I can do something like this? (I attach an image of what I'm looking for in case you don't understand)
.caja1{
border: 1px solid black;
border-bottom: 0px;
width: 100px;
}
.caja2{
border: 1px solid black;
width: 500px;
height: 100px;
}
<div class="caja1">Caja 1</div>
<div class="caja2">Caja 2</div>
For it to work, you need:
A tabs type menu is not structured like this.
But since I don't know the purpose or use, the best thing for ize is to give it a fixed height (to the supposed button), which it is
caja1
, and from there move the same border hook down: 1px.Giving it a fixed width, and a 1px border, with z-index positioning, I moved down 1px (the same as the border) to hide the border of the
caja2
.It's what occurred to me. But you have to take into account the parent container, the width and response, and some other things that only you will know