• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to add a blue bar in InDesign?

Enthusiast ,
Mar 19, 2023 Mar 19, 2023

Copy link to clipboard

Copied

Hi,

 

Is there any way to add a blue bar as seen in Screenshot 2?

 

Hosun


Screenshot 1

34F94F92-CF3A-4AA2-8739-CE15F0A68F53.png

Screenshot 2
080E3A62-4DCE-44A4-A87F-4139C6966EEC.png

<Title renamed by moderator>

TOPICS
How to

Views

488

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 3 Correct answers

Community Expert , Mar 19, 2023 Mar 19, 2023

Check out the options for Paragraph Border in your paragraph style definition dialog.

Votes

Translate

Translate
Community Expert , Mar 20, 2023 Mar 20, 2023

...and make sure that "Merge Consecutive Borders" is checked at the bottom. This can be a little fussy in that sequential paragraphs — which may be of different styles — must have identical border (or rule, or shading) definitions for that style to merge across them. Very slight variations will cause the borders etc. to separate.

 

Votes

Translate

Translate
Community Expert , Mar 20, 2023 Mar 20, 2023

I'd have to look at some code, but I am not sure there's any way to fix that other than eliminating spacing between the paragraphs, and possibly using a null paragraph style to implement the spacing. It's a case where the special way ID handles the continuous border is not translated into HTML.

 

ETA: What might work is, at the CSS level, replace top and bottom spacing with padding instead of margin.

 

Votes

Translate

Translate
Community Expert ,
Mar 19, 2023 Mar 19, 2023

Copy link to clipboard

Copied

Check out the options for Paragraph Border in your paragraph style definition dialog.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 20, 2023 Mar 20, 2023

Copy link to clipboard

Copied

...and make sure that "Merge Consecutive Borders" is checked at the bottom. This can be a little fussy in that sequential paragraphs — which may be of different styles — must have identical border (or rule, or shading) definitions for that style to merge across them. Very slight variations will cause the borders etc. to separate.

 


╟ Word & InDesign to Kindle & EPUB: a Guide to Pro Results (Amazon) ╢

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 20, 2023 Mar 20, 2023

Copy link to clipboard

Copied

[Screenshot 1]

On Id, the blue bar is continuous.

 

[Screenshot 2]

On EPUB, the blue bar is discontinued.

 

To make the blue bar continuous on EPUB, is setting space after to zero the only way?

 

Screenshot 1Screenshot 1Screenshot 2Screenshot 2

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 20, 2023 Mar 20, 2023

Copy link to clipboard

Copied

I'd have to look at some code, but I am not sure there's any way to fix that other than eliminating spacing between the paragraphs, and possibly using a null paragraph style to implement the spacing. It's a case where the special way ID handles the continuous border is not translated into HTML.

 

ETA: What might work is, at the CSS level, replace top and bottom spacing with padding instead of margin.

 


╟ Word & InDesign to Kindle & EPUB: a Guide to Pro Results (Amazon) ╢

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 21, 2023 Mar 21, 2023

Copy link to clipboard

Copied

- offsets to paragraph border

- indent to paragraph

Both didn't work to make space between the blue bar and the paragraph on EPUB.

 

So, I added:

p.dh-text {margin: 0;

                 padding: 0;

                 padding-left: 12px;}

 

Screenshot 1Screenshot 1Screenshot 2Screenshot 2

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2023 Mar 21, 2023

Copy link to clipboard

Copied

If you want spacing between the list items, much like your first InDesign example, you should be able to add some top and/or bottom padding and still have the left bar joined all along its length. In the XHTML code, ID is passing along margin spacing, which puts space between the element holding that left border. If you change it to padding, there is no space between elements, but space is added within the elements, extending the border.

 


╟ Word & InDesign to Kindle & EPUB: a Guide to Pro Results (Amazon) ╢

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 21, 2023 Mar 21, 2023

Copy link to clipboard

Copied

LATEST

1.

On Id, only first line indent worked to make space between the blue bar and the paragraph on EPUB.  
2.

With css, I set margin-left. It didn't work.
3.

So, I chose padding-left

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines