I'm trying to duplicate a header for a book project, but I can't get my text to go over the two lines I created, like it is in the example i posted below.

example image

I created two lines like on the image, but when i put a text frame over them, the text dissapears or goes over or below lines. I tried text wrap and that didn't help either.

closed as off-topic by Cai, Zach Saucier, DᴀʀᴛʜVᴀᴅᴇʀ Mar 28 '16 at 15:49

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "If you're asking for help with implementation, please include what you've tried and why it didn't work with screenshots. Please edit your post with what your desired results are, what resources you referenced and why those didn't work. See this meta post for discussion and see this post on how to ask a good question." – Cai, Zach Saucier, DᴀʀᴛʜVᴀᴅᴇʀ
If this question can be reworded to fit the rules in the help center, please edit the question.

  • can you tell what have you tried so far? – Luciano Mar 25 '16 at 11:12
  • I created two lines like on the image, but when i put a text frame over them, the text dissapears or goes over or below lines. I tried text wrap and that didn't help either – John Smith Mar 25 '16 at 12:08
  • Have you tried using a custom strikethrough instead? Check the strikethrough options. – Luciano Mar 25 '16 at 14:01
  • When I use a strikethrough, the line continues under the text and i want it not to be visible under the text – John Smith Mar 25 '16 at 14:36

Solid Background

Add the background color to the text frame. Select the text frame and then add a color to it. Make sure the text frame is above the 2 lines.

Tip: Create a character style that has left and right indents. You can then set "Fit Frame To Content". This will work great for varying text lengths.

add background color to text frame

Textured Background

Add 2 Rectangles Frames on both sides of the text.

Text Frame Boxes

Create your lines and group them. Copy and Paste in place.

Select one of the grouped lines and cut (CMD / CTRL X), select one of the empty frames. Go to Edit -> Paste Into.

Do the same for the other lines.


Result of paste into

  • Thank you a lot Andrew, but the point is I can't get the text to show over the lines, when I try to do so, it goes over or under the lines or vanishes completely when it is supposed to be over lines. Am I missing something? – John Smith Mar 25 '16 at 17:14
  • @JohnSmith I am not sure how you're setting up your document. If the text is under the lines then move the text frame above the lines in the Layers Panel. I do not know why your text box disappears when moving the text frame over the lines, things do not just disappear, so I am not sure what you mean. I would suggest you create a new document and just work with these 2 objects to see how they work. – AndrewH Mar 25 '16 at 17:19
  • I think you misunderstood me, the text frame doesn't dissappear, only the text dissappears, it's shown as overset when i move the frame over the lines – John Smith Mar 25 '16 at 17:35
  • Moving the text frame in the layers panel shouldn't make the text overset... If the text frame does become overset, then you should adjust the frame size. I still do not understand what you're doing that creates this issue. – AndrewH Mar 25 '16 at 17:42
  • The text wrap was the problem, it was on so it forced the text over or under the lines, I got it now, thanks a lot – John Smith Mar 25 '16 at 18:05

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