homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

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

Msg#: 4485861 posted 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,



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

Msg#: 4485861 posted 9:15 pm on Aug 17, 2012 (gmt 0)

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.


WebmasterWorld Senior Member 5+ Year Member

Msg#: 4485861 posted 10:51 pm on Aug 17, 2012 (gmt 0)

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 />.

Msg#: 4485861 posted 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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved