Mobile app version of vmapp.org
Login or Join
Debbie163

: How to make rectangle with text in its border? I am using Sketch App and I want to create the exact illustration: Creating rectangles is really easy, but how can I make a text in the border

@Debbie163

Posted in: #Shapes #SketchApp

I am using Sketch App and I want to create the exact illustration:



Creating rectangles is really easy, but how can I make a text in the border like <html> as you can see above?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Debbie163

2 Comments

Sorted by latest first Latest Oldest Best

 

@Alves566

You should use Dynamic button plugin github.com/ddwht/sketch-dynamic-button
Make your tags texts (<html>, <head>, etc.) as Dynamic buttons.
Set BG color to white.
Make paddings on test styles to 0:10.



Download sample sketch file

10% popularity Vote Up Vote Down


 

@Ravi4787994

If you want that it is a rectangle and not a open path you need to mask the area where you want the text to appear.

Steps:


Draw a rectangle
Place text on desired place
Create mask to reveal or hide desired areas of the rectangle that touch your text


Here a video about masks in sketch:

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme