Not sure what, if anything I'm doing wrong. I've added a horizontal rule via custom HTML and <hr>. The rule shows up just fine on the Forms edit page, but is not displayed during preview or publishing.
Question
Question
Replies
I just tested it and it works fine for me. Do you have any custom CSS on the form? Also, do you have any field rules that might be hiding that Custom HTML field?
When previewing in Chrome, are you able to see the <hr> element in the form source? Selecting it should show you the styling that gets applied to it.
hi there, it works for me. Did you refresh or leave Edit page after adding the custom HTML? The changes won't take effect until you leave the page.
Did anyone figure this issue out? I see the same problem (sporadically). I can have five or six custom HTML elements in my form, each containing only a <hr> tag, and several of them will work just fine, but one or two of them will just display as a blank line, and I can't figure out why.
Technically you should be using <hr />. Depending on the browser it may not display properly the other way because it doesn't know how to interpret a non closing tag.
This isn't correct. Tags like <hr> and <br> are known as "void elements" and don't need to be closed when writing HTML.
Please see here for details.
Ege, that is correct for HTML5. I didn't realize that Forms outputs the HTML as HTML5 until I just looked at the source code. So please ignore my comment.