You can not toggle element's border with inner div which has position: absolute;
Look at the demo, I've added border to #up
to all sides exept bottom, and make this div override parent's (#middle
) with bottom: 201px;
UPDATE 2: I'm not sure if you need a tab effect like this
or like @Danko made link