Yoghourt v1.1
Brought to you by Web-Kreation
This template is released under the Creative Commons Attribution v2.5. Valid XHTML & CSS.
How To Add Cool Lines To Your Ebook Templates
Ever wonder how to get some neat looking lines inside your ebook template designs without a bunch of fuss having to create them first inside Photoshop?
Because today, I’m going to show you how to do it, simple, fast, and above all. . .easy!
How To Add Simple Lines To Your Headers & Footers
The first thing you’re gonna want to do is open up either an existing .ODT OpenOffice Writer text document, or create a new one by opening up OpenOffice Writer.
Now, normally, when you open up OOo Writer, it will create a brand new text document by default. At least, it does for me

Okay, once we have OOo Writer up and a text document, it’s time to add some snazzy lines to the Headers & Footers in our document.
Okay, now that we have our “default” Header & Footer inside our text document, it’s time to add a little bit of text to them. You can add whatever you want, or add nothing and skip this step. It isn’t necessary to add text to add the cool lines.
To add a simple line that runs the length of either the Header or Footer, “Right Click” inside either the Header area or the Footer area.
We’ll need to determine how our line will look inside our Header or Footer.

You can adjust the width of the line, and the color from here.
The next thing we’ll want to do is decide on where we want the line placed. Do we want it at the bottom of our text line? At the top? Around the right and left edges? Both top and bottom? Or enclose the text completely with the lines?
For this tutorial, I’m only going to add a line that runs along the bottom of my Header and Footer.
You’ll notice that there is now a dashed line surrounding a solid line with arrows on either side. That means that this is where our line will appear within our Header or Footer. Pretty easy, right?

Towards the bottom of the “Line arrangement” section, you’ll see a “Shadow style” section. Use this if you want to add a shadow to your line. I’m not going to, but feel free to play around with those settings and see what you come up with.
Okay, if you are pleased with your line settings, simply hit the “OK” button and whammo! There’s your line, tucked right underneath your Header or Footer text:
How To Add More “Stylish” Lines To Your Header & Footer
That’s terrific, but what if you want to add a “dashed” line inside your Header or Footer?
First you’ll need to bring up the “Drawing” toolbar, if it isn’t already visible. Inside my copy of OOo Writer, it wasn’t, so here’s how to open it:
When I first opened up my Drawing toolbar, it popped up at the bottom of my OOo Writer in the left hand corner, yours may too. Or, it may show up at the top on the right hand side.
If you haven’t already guessed, we’re going to be drawing our dashed line. But don’t worry, it’s easier than you think. If you can hold down a couple of keys and drag your mouse, you can draw a perfectly dashed line.
Now, you will want to go to the section where you want your dashed line to appear within your text document.
Go up to the left hand side of the Footer, while still having the “line” tool selected, left click and hold it down while at the same time holding down the “Shift” key and drag across all the way to the right side of your Footer.
Right now, you should have a solid straight line as pictured above, even though you can’t see it very well.
The next step is to “hover” your mouse over top of your newly drawn line and then “right click”.
From here, we’re going to solely concentrate on the “Line properties” area of this window.
In the first drop down menu, pictured above it has the word: Continuous shown, you will select the following from it: Dashed (variable).
Feel free to change the color of the line and the width of the line also in the options below the drop down menu section.
Now, to actually see your new dashed line, left click anywhere inside your text document main area.
Again, I made my dashed line thicker so that you could see my end result. Yours will probably look different.
Don’t be afraid to test out new things by playing around with all the settings and tools available inside OpenOffice Writer.
Understanding Lines and Borders in OpenOffice Writer
Before you dive deeper into line styling, it helps to understand how OpenOffice Writer treats lines and borders. In Writer, a line can be a paragraph border, a drawn object, or a character-level underline. Each behaves differently when you edit text or change page margins. Paragraph borders flow with the text, while drawn lines stay anchored to a position unless you anchor them to a character or paragraph. This distinction matters when you design ebook templates that will be converted to PDF or EPUB.
For headers and footers, paragraph borders are usually the most reliable because they automatically adjust to the width of the header or footer area. Drawn lines, on the other hand, give you more creative freedom but require careful anchoring. If you add a drawn line to a header and then change the page size, the line may not stretch to the new width unless you anchor it correctly. Experiment with both methods to see which fits your workflow.
Combining Lines with Text Styles for a Professional Look
Lines alone can look stark, but when paired with well-chosen text styles, they create a polished, book-like feel. For example, a thin double line under a chapter title in the header can echo the typography of a printed novel. To achieve this, first format your header text using a paragraph style, then add a border to that style rather than to individual paragraphs. This way, every header using that style automatically gets the same line treatment.
To edit a paragraph style, press F11 to open the Styles and Formatting window, right-click the style you want (e.g., "Header"), and choose Modify. Go to the Borders tab and set your line style, width, color, and position. You can also add a shadow here. This approach is more efficient than manually adding borders to each header or footer, especially if you have many pages or chapters.
Creating Decorative Lines with the Drawing Toolbar
The Drawing toolbar offers more than just straight lines. You can create dotted, dashed, and even artistic lines using the line properties dialog. To access more line styles, select your drawn line, right-click, and choose Line. In the Line tab, click the Line Styles button to open a dialog where you can define custom dash patterns, dot spacing, and even combine multiple dashes and dots.
Here are some ideas for decorative lines in ebook templates:
- Double lines for formal section breaks.
- Dash-dot patterns for technical or instructional content.
- Thick-thin combinations to mimic classic book design.
- Colored lines that match your template's accent color.
Remember that drawn lines can be copied and pasted, so once you create a line you like, you can duplicate it quickly across multiple headers or footers. Hold Ctrl while dragging to copy a selected line.
Anchoring Lines So They Stay Put
One common frustration is adding a drawn line to a header, only to have it shift when you edit the document. To prevent this, anchor your line to the paragraph or character in the header. Right-click the line, choose Anchor, and select To Paragraph or To Character. Then set the line's position relative to that anchor. For headers and footers, anchoring to paragraph is often best because the line will stay aligned with the header text even if you add or remove content above.
You can also use the Position and Size dialog (right-click the line, choose Position and Size) to set exact coordinates and dimensions. If you want the line to span the full width of the header, set the width to match the header's text area width. To find that width, check your page margins: page width minus left and right margins equals the text area width. For example, an A4 page (21 cm wide) with 2 cm margins on each side gives a 17 cm text area.
Using Lines to Separate Sections Within a Page
Beyond headers and footers, lines can be used inside the body of your ebook to separate sections, create sidebars, or highlight quotes. A simple horizontal rule can be added as a paragraph border on an empty paragraph, or you can draw a line and anchor it to a specific paragraph. For a reusable section break, create a paragraph style called "Section Break" with a bottom border and some spacing above and below.
If you want a more decorative break, you can use a sequence of characters like asterisks or tildes, but a true line is cleaner. Another trick is to use a table with only the bottom border visible, which gives you precise control over line length and indentation. This is useful if you want a centered short line rather than a full-width rule.
For more advanced template editing, see How to Edit EZ Ebook Template Backgrounds and How to Edit EZ Ebook Templates (Part 1).
Troubleshooting Common Line Issues
Sometimes lines don't appear where you expect. If a paragraph border doesn't show, check that the paragraph has some height (an empty paragraph with no line spacing may collapse). Increase the paragraph's line spacing or add a small amount of space above and below. If a drawn line disappears, it may be behind another object; right-click and choose Arrange > Bring to Front.
If your dashed line looks solid when printed or exported to PDF, the dash pattern may be too fine for the output resolution. Increase the dash length in the line style dialog. Also, ensure that the line color is not set to white or the same as the background. Finally, if lines shift when you open the document on a different computer, the fonts may differ; always embed fonts or use common fonts like Arial or Times New Roman in your templates.
For more on template creation, check out How to Make Your Own OOo Writer Ebook Templates: Part 1 and How to Make Your Own OOo Ebook Templates: Part 2.