Titles with borders?

In Compile, a number of Section Layouts contain titles with borders. Where and how are title borders controlled? They appear to relate to the “bordered title” style, but I don’t see where they can be modified to something other than a simple straight line. Thx

In the same dialogue box, if you click on CSS in the left hand panel and have a look at the custom style sheet box, the first line is:

/* Amend title to have lines above and below */ .bordered-title { margin-left: 10%; margin-right: 10%; border-top: 1px solid black; padding-top: 12px; border-bottom: 1px solid black; padding-bottom: 12px; }

I imagine that’s where you change the look of the lines. I tried changing border top to ‘solid red’ and it changed the colour accordingly. I don’t know enough CSS to take it any further though but somebody else on here will no doubt…

Obviously that’s different from just adding an image with an <$img> tag in the Section Layout > Titler Options > Title Prefix etc pane.

Interesting. So maybe something in the “Bordered Title” style is directing Compile to “append the custom CSS stylesheet”. Now I just need to find out what that “something” is.

Thanks!

“Bordered Title” is the name of that style, and if you don’t assign a custom CSS name to a style, then you can refer to it by its name in lowercase with spaces replaced by hyphens. So, in CSS you can refer to this as “bordered-title”.

If you look in the “CSS” pane of the “Ebook” format, you’ll see that I have selected “Append Custom CSS Stylesheet”. There are thus two sets of CSS text shown - the custom one, on the left, and the default one, on the right. The custom CSS will be appended to the automatically-generated one. I have then added the necessary CSS to the custom area to add a border to any text using the “Bordered Title” style. And I’ve applied the “Bordered Title” style to headings in certain Section Layouts.

All the best,
Keith

Does anybody know if it is possible to create a bordered title when compiling for pdf?