Skip to main content
Participant
May 21, 2022
Question

Tag Libaries: setting format

  • May 21, 2022
  • 3 replies
  • 152 views

I want to set off my elements with a blank line before and after, e.g.

blank line

<h5>headline and link</h5>

blank line

I want then to be able to invoke code formatting to make sure this is true throughout the document for easier reading.

This does not seem to be an option in the tag library. Can anyone help?

This topic has been closed for replies.

3 replies

Nancy OShea
Community Expert
Community Expert
May 21, 2022

I see that Ben M interpreted your question differently than I did.  Tag libraries effect code formatting.  CSS effects content style in Design/Live view.

 

 

 

Nancy O'Shea— Product User & Community Expert
Nancy OShea
Community Expert
Community Expert
May 21, 2022

Edit Tag Libraries (see screenshot).

That's the best you can do.  DW does not automatically insert blank lines between code. 

 

If you want blank lines, do it manually.

 

Nancy O'Shea— Product User & Community Expert
Community Expert
May 21, 2022

I'm not sure why you are using the tag library for this.  In your CSS if you want all H5's to have margin above and below just do:

 

h5 { margin: 1.5em auto; }

 

Just change that 1.5em value to whatever you want your padding to be on the H5 element and you should be all set.