Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Why is my font size not sticking here?

Why is my font size not sticking here?
Thread Tools
Professional Poster
Join Date: Apr 2002
Location: New York City
Status: Offline
Reply With Quote
Dec 29, 2004, 09:03 PM
 
I got a php rss aggregator going on my website. I want the article titles, which are links to the articles, to be font size 16, and I have that specified as such in my style sheet:

Code:
.standtitle { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; color: #FFFFFF; font-weight: bold; }
This usually works without a hitch (see other pages on the site: links for example), but for some reason the fonts all go to size 12. I've tried using <font> tags and other stuff, but nothing seems to be working. Here's the formatting part of the code I'm dealing with:

Code:
if (isset($rss_channel["ITEMS"])) { if (count($rss_channel["ITEMS"]) > 0) { for($i = 0;$i < count($rss_channel["ITEMS"]);$i++) { print ("<p><span class=\"standttitle\"><a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\" target=\"_blank\"><strong>" . $rss_channel["ITEMS"][$i]["TITLE"] . "</strong></a></span></br>"); print ("<br><span class=\"standtext\">" . html_entity_decode($rss_channel["ITEMS"][$i]["DESCRIPTION"]) . "</span>"); print ("</p>"); }
I'd appreciate any pointers.

P.S. I'm not a programmer. I know a few basic html tags, but for the most part I don't know anything, so try to use layman's terms if you feel like offering a suggestion. Gracias.
     
Junior Member
Join Date: May 2004
Status: Offline
Reply With Quote
Dec 30, 2004, 12:15 AM
 
You have a typo.

print ("<p><span class=\"standttitle\">
should be

print ("<p><span class=\"standtitle\">
     
Axo1ot1  (op)
Professional Poster
Join Date: Apr 2002
Location: New York City
Status: Offline
Reply With Quote
Dec 30, 2004, 02:16 AM
 
haha. man...i need to get my eyes checked. thanks for the help.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:03 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2