MyBB Community Forums
Text Shadow MyCode - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: MyCodes (https://community.mybb.com/forum-117.html)
+--- Thread: Text Shadow MyCode (/thread-152140.html)



Text Shadow MyCode - Starpaul20 - 2014-03-22

This simple code will allow you to add a shadow to text. Please note this will not work in Internet Explorer 9 and earlier versions.

Regular Expression:
\[shadow=(.*?)\](.*?)\[/shadow\]

Replacement:
<span style="text-shadow: 3px 3px 3px $1;">$2</span>

Usage:
[shadow=#FF0000]Your text here[/shadow]
(You can change #FF0000 to any color you want)

The output will look something like this:
   

Enjoy.Smile