No announcement yet.

How do I change editors text background color

  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I change editors text background color

    Is there a way to change the background color for the text?
    To create effects like shown in pic

    Click image for larger version

Name:	VbulletinCk_.jpg
Views:	178
Size:	10.4 KB
ID:	4453984

  • #2
    If not mistaken it look like when the text is highlighted. You can use the selection pseudo css property

    ::selection { background-color: #000;color:#fff }
    Paste this into your css_additional.css
    Style manager> style name abc> Edit templates> Css Templates> css_additional.css

    If using vbCloud, turn on sitebuilder> styles>
    Last edited by napy8gen; Sun 21 Feb '21, 3:22pm.
    Get Our New Flat Theme Pro Pack or Grab all 36 vb5.6.6 skins -vb3 responsive style or vb4 responsive style and vbcloud custom style and Please check out Our first vBCloud pre-made theme


    • #3
      You would need to create a custom BBCode for users to apply a background to specific text within a post.

      Something like:


      The replacement should be:
      <span style="background-color:{option}">{param}</span>

      Make sure Use Option is set to Yes.


      Apollo 11 was the spaceflight that landed the first humans,
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API


      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.