Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Microsoft Word 2007 I want to put a heading in the center of a line with a horisontal line to the left and to the right of the text.

The line must not cross through the text. I have tried using Autoshapes, lines - but then the lines move each time I press enter or backspace and I have to put them in place again manually.

At Borders and Shading there is an "insert horizontal line" option, but this gives me a solid line from the left to the right of the page and I cannot insert text anywhere on it or in it.

The final product should look something like this

------------------------- Heading -------------------------

Please Help

share|improve this question

Type "Heading" on the line where you need it.

View -> Check the "Ruler" mark.

enter image description here

In the top left corner of the document area (below the ribbon), there is a little square with funky signs that change if you keep clicking on them (1). The one that's displayed should be the "L" looking, when you hover your mouse over it, it says "Left Tab" (the one that's on the picture is the Right tab). Make sure it is displayed and click on the lower part of the ruler until you see the same shape show up on the ruler. Once you see it there, you can drag it wherever you need it. Find the tab marks on the left of the ruler (you drag them to adjust the left alignment). Make sure your "L" is on top of the bottom piece (2).

Click the corner with funky shapes once, your selection should change to the upside-down "T". Place your upside-down "T" on the lower part of the ruler somewhere in the middle (you can easily adjust it later, so an approximation would work just fine for now) (3).

Click the corner with funky shapes once more, you should see the mirrored "L", now click on the lower part of the ruler again, closer to the right border of the printable area. Once you have the mark there, drag it to the marker that designates the right side of the printable area (4).

Position your cursor before the beginning of your heading. Select "Strikethrough." Hit "Tab" key once. Move your cursor to the end of your heading. Select "Strikethrough". Hit "Tab" key once.

You can now adjust the middle of your heading by dragging the marker on the top of the ruler.

Here's a catch: if you start a new line, remove those markers from the ruler (click and hold your mouse on one of them, drag it down until the mark becomes gray, release your mouse and it will disappear), otherwise next time you hit the "Tab" key, your cursor will move to the middle of the page.

I hope I made it clear, it's hard to explain, but those little markers are a powerful alignment feature, and is very usable for tasks like yours.

share|improve this answer

Put spaces (or tabs) on either side of your word, then apply strikeout to them. Do not strikeout the whole line, just highlight the spaces on either side and apply strikeout to them separately. I'm not sure if word calls it strikeout or strike-through, but look for it in the font options.

I'm pretty sure this is what you want:

alt text

share|improve this answer
nice thinking, but Word is a b****, "strikethrough" only works until the letter 'g' in 'Heading' or anywhere BEFORE but not after. at least in Word 2003 – Molly7244 Dec 28 '09 at 18:05
Then you're doing it wrong. – John T Dec 28 '09 at 18:15
don't think so, highlighted the first bit, pressed CTRL and highlighted the last bit, so far so good, now right click and FONTS, select strikethrough and hit OK, the result: – Molly7244 Dec 28 '09 at 18:40
of course the same happens if i do the selections separately and want to apply strikethrough, no dice beyond the letter 'g'. – Molly7244 Dec 28 '09 at 18:49
tabs does the job, thanks. – Molly7244 Dec 28 '09 at 19:02

Strikethrough won't work. Insert "---", and press enter. This will give you the line you're looking for. Insert a text box onto the middle of that line you just created and change the properties of the background of the text box to be an opaque white (to cover up the part of the line behind the words. If you center the text inside of the text box, you can adjust how much of the "line" you want to cover up by stretching the text box out on the sides.

share|improve this answer
It does work, how do you think I attained picture proof? – John T Dec 29 '09 at 4:30
-1 very wrong to say strikethrough won't work and not edit your post even after somebody has corrected you. You could even use strikethrough on parts of your own post – barlop Aug 9 '15 at 23:00

I had the same problem with spaces AFTER the word not showing the strike-through line (Word 2003). A special character was suggested at the end of the line...a dash (em Dash). This worked like a charm, the strike-through showed up after the word and the line ended with a dash that was lined up with the strike-through line so all was great, right?. EXCEPT, the print preview showed that the dash was actually slightly above the strike-through line and looked terrible.

Final solution: Instead of a dash, use a period [.] instead. Since you don't want to see it, highlight it and make it the same color as the page [white in my case] and it becomes invisible. There may be a very slightly larger blank space where the period is, but it is only a pixel or two so I doubt anyone would notice.

share|improve this answer
Please know that you have answered a question that is more than 6-years old. Although there is nothing wrong with doing so, just be aware you may not get a response. – CharlieRB Feb 19 at 13:59

You must log in to answer this question.