1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Horizontal line

Discussion in 'XenForo Questions and Support' started by LuvMeSumZen, Jun 20, 2016.

  1. LuvMeSumZen

    LuvMeSumZen Active Member

    Looked in the manual but couldn't find it. I cannot figure out how to insert a horizontal rule.

    <hr>
    <hr width="60%">

    How do I do it?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You would need to create a custom bb code.
     
  3. LuvMeSumZen

    LuvMeSumZen Active Member

    Can't quite figure it out. I used one of the other codes (subscript) as my example but I'm sure I have no clue what I'm doing. Here's what I came up with ...

    hr1.jpg
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    The HTML replacement field would just be <hr />.
     
    maszd likes this.
  5. LuvMeSumZen

    LuvMeSumZen Active Member

    Still couldn't get it working using your exact code. What would the actual html code look like that I should use in the editor when calling for the hr?

    [hr][/hr] ?
     
  6. LuvMeSumZen

    LuvMeSumZen Active Member

    Finally found the magic combo thanks.
     
  7. LuvMeSumZen

    LuvMeSumZen Active Member

    One more question how do I throttle the width? I used the code in my earlier examle [hr width=60%][/hr] and it didn't work. Do I have to make a code for each custome width that I want?
     
  8. LuvMeSumZen

    LuvMeSumZen Active Member

    I've been playing around with making a custom code for a line width of 60% of the page but can't get it working. Does anyone know what the HTML replacement field should be? I think that's the only problem I'm having.
     
  9. LuvMeSumZen

    LuvMeSumZen Active Member

    @Chris D do you know if it's possible to have a shorter version of the HR?
     
  10. Mike

    Mike XenForo Developer Staff Member

    This would likely work:
    Code:
    <hr style="width: 60%" />
     
    LuvMeSumZen likes this.
  11. LuvMeSumZen

    LuvMeSumZen Active Member

    Thanks Mike I think I tried about every variation but that one.
     

Share This Page