I'm interested in the answer. I think the only way to do it is with customized CSS that are defined outside of InDesign.
Do you think an HTML snippet might work? I can get a small line to appear when adding an HTML - but I can't seem to change any of it's attributes (ie width, size, align)
two things are needed:
two paragraph styles, if this are two paragraphs! Otherwise the two paragraphs could be exported as one para and separated with a shift return.
2. Search the two styles in the css and add.
1px solid red;
1px solid red;
1 person found this helpful
The ideal situation would be to include Additional CSS using Add Style Sheet while exporting to ePub. That way you don't have to crack open it after the fact. I tried your code but it didn't work. This is what works for me assuming two paragraphs named Rule-above and Rule-below respectively:
border-top: 1px solid red;
border-bottom: 1px solid red;
This is the result:
Haha, if there is no property, a value alone cannot work. Shouldn’t write something before go to bed ;-)
So, Ellis code ist right! The additional padding-property is working like "textframe inset" and put the line away from the paragraph.
To the ideal situation:
Either InDesign should honor a paragraph-rule in the output or someone should write his one CSS. I would never include a second CSS-file in the document. Instead I vote for a complete own CSS and don’t use the InDesign generated CSS, cause 90% of InDesigns generated Code is either superfluous or wrong.
Kai and Ellis!
You guys are awesome. HUGE time-saver - I don't like breaking open the file afterward if I don't have to.