Announcement

Collapse
No announcement yet.

Can not get horizontal rule bbcode to work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Can not get horizontal rule bbcode to work

    Well, I've tried creating the bbcode in the following fashion:

    Title: Horizontal Line BBCode
    BB Code Tag Name: line
    Replacement: <hr color="{param}" width="100%" size="1" />

    where param is a colour.

    The problem is that the line shows in a post preview, and also on the recent posts widget for the CMS, but it never shows for the actual post.

    Any ideas what I may be doing wrong here? I'm using vB 4.0.6.
    PakFellows Forums - A Pakistani Forum & Social Network

  • #2
    Try this:

    Code:
    <hr style="color:HR;background-color:HR;display:block;"/>
    You need both color and background-color to be the same for cross browser compatibility. Internet Explorer uses color and ignores background-color. Firefox and Opera will ignore color and use background-color, certainly in older versions. The 'display' element is because there is a display:none in the postbit.css to hide it in other areas of the postbit so you need to override this.
    Vote for:

    - *Admin Settable Paid Subscription Reminder Timeframe*
    -
    *PM - Add ability to reply to originator only*
    - Add Admin ability to auto-subscribe users to specific channel(s)
    - "Quick Route" Interface...

    Comment


    • #3
      Originally posted by Trevor Hannant View Post
      Try this:

      Code:
      <hr style="color:HR;background-color:HR;display:block;"/>
      You need both color and background-color to be the same for cross browser compatibility. Internet Explorer uses color and ignores background-color. Firefox and Opera will ignore color and use background-color, certainly in older versions. The 'display' element is because there is a display:none in the postbit.css to hide it in other areas of the postbit so you need to override this.
      Thank you very much for helping, Trevor. This indeed works. *thumbup*

      PakFellows Forums - A Pakistani Forum & Social Network

      Comment

      Related Topics

      Collapse

      Working...
      X