1

When editing rich text in a CEWP, as typical not-admin user, how does one go about inserting a horizontal rule? Google has not been my friend. I'm loathe to tell the users they need to edit the HTML and stuff in an HR tag. And I'm hoping there is a better answer than that or, even worse, a giant string of underscore characters. This would be for SP2010 Server, if that matters.

6

I don't know about you guys but on my CEWP if I do the following, I can enter an HR tag without moving to the html view:

  • Type some dummy text
  • Click the area where we want the line
  • In the ribbon, pick Editing Tools > Format Text > Markup Styles > Horizontal Rule

We can even customize the look and feel of the line with CSS using

hr.ms-rteElement-Hr

update: screenshot (specific of SharePoint 2010)

enter image description here

In SharePoint 2013, we can create new elements through CSS, e.g.

/*extensions*/
/*page elements*/
span.ms-rteElement-CustomHRElement{
    -ms-name:"HR in page elements";
    background-color: #b6b6b6;
    height: 1px;
    width:100%;
    display:block;
}
/*text styles*/
.ms-rteStyle-CustomHRStyle{
    -ms-name:"HR in text styles";
    background-color: #b6b6b6;
    height: 1px;
    width:100%;
    display:block;
}

enter image description here

  • Indeed. If it was a snake, I surely would have gotten bit. Just didn't see it there amongst the other choices. Thank you sir. – Alan M Jun 18 '14 at 0:26
  • I have SP2013 and I can not locate the horizontal rule. Appreciate if you can post a screenshot. Thanks! – Aslan Nov 24 '16 at 13:53
  • @Aslan this solution is specific of SP2010. but there's always the possibility of editing the source and adding "<hr/>" – Tiago Duarte Nov 24 '16 at 15:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.