Need some help with these php lines!

by 4 replies
5
Greetings Warriors,

How can I make the string texts to be bold in these php lines:

define('Motto', true);// make true to activate the motto text
define('Motto_TEXT_LINE1', 'How To Save Big Bucks On Your Auto Insurance');
define('Motto_TEXT_LINE2', 'Just Take A Few Simple Steps To Put Insurance Premium Money Back In Your Pocket!');

Is there a way as well to improve the font size of the string texts?

Thanks,
G.B
#programming #lines #php
  • You need to edit where they get displayed, not where they are defined.
  • As KirkMcD said

    <?php
    define('Motto_TEXT_LINE1', 'How To Save Big Bucks On Your Auto Insurance');

    //where you gonna use them
    echo "<strong>".Motto_TEXT_LINE1."</strong>";

    ?>

    However actually you should do all make-up of a website in the CSS not in the HTML itself. Same thing goes for font properties (all size, type etc etc is defined in your CSS)

    Also common practice states all defined vars like you use them are in UPPERCASE letters.
  • Also, define can be used in that way, but it's more normally used for constants where the value should not be changed once it is set, like
    define('HOURSINDAY',24);

    Yours might look better like
    $mottoline1 = 'How To Save Big Bucks On Your Auto Insurance';

    Then when you echo it you can use a parsed string like
    echo "<span class=\"line1\">$mottoline1</span>\n";

    Then in your css you can have something like
    .class {
    font-size: 300%;
    }
  • Thanks, I got it now.

    I really appreciate all your replies.

    Let's go for the best!

Next Topics on Trending Feed