PHP font size output

Hello, I have tried everything to get different font size for the two various lines of code, I am wondering if there is a way to style each line of code to have a different text size output??

I would like this code to have like a large font size.

<?php foreach($lists->artcount as $key => $value): ?>

and this code to have a smaller font size.

<?php echo trim($params->get('beforeText')); ?> <?php echo $value; ?>

Is this possible??? I would appreciate any help that can be given

you can use HTML or CSS…

HTML
[php]<?php echo "" . $value . ""; // large text ?>[/php]

CSS
[php]
.smallText { font-size:10px; }

<?php echo "" . $value . ""; ?>

[/php]

I urge you go down the CSS route, ultimately this is the better way to go as the code is cleaner.
You should put the ‘style’ in between the tags or alternately, use an external file (stylesheet) thus when it comes time to change something, you change only one file instead of multiple files…

Hope that helps…

Red.

Ok thanks, but where in this code do I put the additional code you provided ?
Sorry but I am new at this, the only line of code I need to have a different font size output is this one. I have managed to get the style, but I cant figure out how to get this code

<?php foreach($lists->artcount as $key => $value): ?>

to have a different output from this code

<?php echo trim($params->get('beforeText')); ?> <?php echo $value; ?>

The over all code outputs the name of a article category which is the second line of code and the first code is the article count in the category. hope this explains what I am looking to have help on?

here is the link to the page with the outcome, you will see the code at work in the upper right side of site, it will be a blue box that says 7 Networks Listed In Affiliate Mobile Networks
http://affiliates.affilimatrix.com/Affiliate-Mobile-Networks/

Thanks for helping out.

Sponsor our Newsletter | Privacy Policy | Terms of Service