Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I am trying to create a two tone border to go under headings in MS office. The goal is to look like this one:

Notice how the Heading has an underline with two colours (of different sizes as well). This is easy enough to do in CSS, which was

  border:yellow 3px solid;
  box-shadow:0 1px 0 dark-yellow;

Any ideas would be greatly appreciated. I would be happy to use an image as the border as well. This will be used a template for all Word documents, so I will have to be able to embed this style into a Word Template.

share|improve this question

One way to do it completely within Word would be to first insert an "Autoshapes" drawing canvas picture beneath the title words in the document's header, and then drawing two horizontal lines next to one other of different colors and widths on the canvas. You can set the color and linewidth by right-clicking on each and selecting "Format Autoshape...".

Here is what it would look like in Word like immediately following creation:

Screenshot of sample document in Word

You can download the above sample Word document here.

A slightly different approach would be to create a simple image file with an external app and then insert it as a Picture element into the Word document's header. After inserting it you can resize it as necessary. On Windows the image file could be created with the provided Paint application.

share|improve this answer
Thanks, any idea how to make part of the style, say every h2 or h3 tag? I am making a template and every time a user clicks h2, I want this two tone line below it. – Kelly Hays Mar 14 '12 at 21:44
@Kelly: I don't know of a way to make it part of a style, which are for applying formatting, not providing content (unlike a document's header). – martineau Mar 15 '12 at 1:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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