<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>&amp;lt;span=&amp;quot;dropcap&amp;quot;&amp;gt;first character only&amp;lt;/span&amp;gt;</title>
        <link>https://interactivetools.com/forum/forum-posts.php?span-dropcap-first-character-only-span-72368</link>
        <description></description>
        <pubDate>Wed, 13 May 2026 21:07:57 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;span-dropcap-first-character-only-span-72368" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [rez] &lt;span=&quot;dropcap&quot;&gt;first character only&lt;/span&gt;</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2210235#post2210235</link>
          <description><![CDATA[If it is not absolutely critical that everyone see the styled drop cap, you can also use CSS to do this...<br /><br /><code>.dropcap:first-letter {<br />	float: left;<br />	font-size: 4em;<br />	line-height: .8em;<br />	margin-right: 3px;<br />	padding: 2px;<br />}</code><br /><br />more info here:<br /><a target="_blank" href="<br />http://www.cvwdesign.com/txp/article/397/how-to-create-drop-caps-with-css-and-css3"><br />http://www.cvwdesign.com/txp/article/397/how-to-create-drop-caps-with-css-and-css3</a><br />]]></description>
          <pubDate>Wed, 23 Mar 2011 16:12:54 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2210235#post2210235</guid>
        </item>
                <item>
          <title>Re: [rez] &lt;span=&quot;dropcap&quot;&gt;first character only&lt;/span&gt;</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2210229#post2210229</link>
          <description><![CDATA[Hi,<br /><br />You could try this function:<br /><br /><code>function wrapFirstCharacter($string){<br /> <br /> <br />  $textArray = str_split($string);<br />  $textArray[0] = &quot;&lt;span class='dropcap'&gt;&quot;. $textArray[0]. &quot;&lt;/span&gt;&quot;;<br />  $newText = join($textArray);<br />  <br />  return $newText;<br />}</code><br /><br />It will take in a string, and then put the span tags around the first character and return it.  You can use it like this:<br /><br /><code>  &lt;?php echo wrapFirstCharacter($record['myTextBox']);?&gt;</code><br /><br />you just replace myTextBox with the name of the field you want to use.<br /><br />Hope this helps<br />]]></description>
          <pubDate>Wed, 23 Mar 2011 12:15:48 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2210229#post2210229</guid>
        </item>
                <item>
          <title>&lt;span=&quot;dropcap&quot;&gt;first character only&lt;/span&gt;</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2210223#post2210223</link>
          <description><![CDATA[I see the max words script but have no idea where to start with this:<br /><br />I simply want to wrap the first character in a text box entry to make a fancy dropcap.<br /><br /><code>&lt;p&gt;&lt;span=&quot;dropcap&quot;&gt;H&lt;/span&gt;ello world.  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dignissim convallis est.&lt;/p&gt;</code><br /><br />Some help auto isolating the first character from 1 text box in an editor please? :)<br />]]></description>
          <pubDate>Wed, 23 Mar 2011 09:59:57 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2210223#post2210223</guid>
        </item>
              </channel>
    </rss>
  