I want a layer like this:

enter image description here

I've drawn the rectangle then I made a selection with the marquee selection tool to delete a part of the rectangle but it deleted whole shape. Can anyone please help me out with this.

Thanks in advance.

2 Answers 2


Although it might be best to do it in illustrator you can:
First make a rectangle
Then rasterize the layer
Use the select tool to select a square and press delete, this should give you one half of the square bracket.
Cut Square
You can then Duplicate the layer
On one of the layers press Ctrl + T to transform the shape and then right click and press Flip Horizontal
You can now move them apart and using the text tool place text in the right position Final

That might not be the best way to do it but it would be how I would do it.

  • You are now losing a lot of (possible valuable) data by 1) rasterizing the layer, therefore you lost all vector data and 2) because you deleted pixels meaning you cant recover them if you need them on a later state.
    – user37657
    Feb 19, 2015 at 10:49
  • @sam-collins Thank you for details tutorial, it's good but you can try JVS suggestion, it's simple :D
    – Hung PD
    Feb 20, 2015 at 4:52

Short answer:

Mask those parts out with a layer mask.

Black to hide, white to reveal.

Use black on the parts you want to get rid of.

Long answer:

After you've created the rectangular shape, add a layer mask (located in the bottom of the layers panal, looks like a rectangle with a circle in the middle).

Make a rectangular selection through out the middle of the rectangle. Fill that recangular selection with black on the layer mask.

Now you should have the desired effect.

  • While correct, this answer's very short. Could you elaborate a bit, for example on how to add a layer mask to a layer? You might also mention that 'layer mask hides effects' needs to be checked for the desired effect. Thanks!
    – Vincent
    Feb 19, 2015 at 11:14
  • @jvs Thank you so much, it's really easy. More question that how can I rotate it? I can't use Transform for it.
    – Hung PD
    Feb 20, 2015 at 4:51
  • Do you want to rotate the shape or the mask?
    – user37657
    Feb 20, 2015 at 7:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.