Welcome to WebmasterWorld Guest from 54.162.248.199

Forum Moderators: not2easy

Message Too Old, No Replies

TEXT: 2 different fonts - 3 different sizes - want all the same

     
12:53 pm on Aug 17, 2012 (gmt 0)



I have an msgToUser when they activate membership, it comes back with 2 diff fonts, 3 diff sizes, and 2 of the paragraphs are bold.

I want them all the same size, same font and not bold. Nothing seems to work for me when I try to adjust the text.

Here is my textů

$msgToUser = "<h2>Welcome $username - from $country, you've just became a member. In just a moment, you will be sent an activation link to your eMail address.</font></h2><h4>Activate your membership by going to your mailbox, then click the link we sent you.</font></h4><br />
If you do not see one, please check your spam mail and add to your safe senders list.</font><br /><br />
<br />
<strong><font color=\"#e60000\">IMPORTANT:</font></strong>
If you cannot see the activation link, contact site admin and briefly discuss the issue.</font><br /><br />
";

include_once 'msgToUser.php';



Thank you,
Scotty
9:15 pm on Aug 17, 2012 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



What are all those extra </font> tags doing?

Answer: One by one they're closing off mismatched opening <font> tags from elsewhere in the document, leading to a cascade of changing sizes and colors.

If you must use <font>

:: insert three pages of heated discussion ::

make sure it follows the same rules as any other inline style tag: open and close within a block-level element like, here, a header. Or do I mean heading? Same as you'd do with <i> and similar.

Validation can't hurt either.
10:51 pm on Aug 17, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Hi Scotty13,
the same size, same font and not boldNothing seems to work for me when I try to adjust the text.
As Lucy has said, the invalid HTML won't help, but the differencesa re also being created by the <Hx>, <strong> and styled <font> elements. Remove them all except the <br />.
8:54 pm on Aug 20, 2012 (gmt 0)



I removed <strong> and styled <font> elements and kept all the <br />.

That worked beautifully.

Thanks everyone for time and help.
Scotty13
 

Featured Threads

Hot Threads This Week

Hot Threads This Month