im trying to change the color of clicks $contentlink = " $linktitle (".$contenthits." clicks)"; Code (markup): how can i change the color? thank you
Change the color for the id of whatever the text is in, in the CSS for that class. Whether it's in an HTML file or a PHP file, color change is done the same way.
nah that wasnt it solved it! thank you! $contentlink = " $linktitle <span class=\"linkSilverFont\"> (".$contenthits." clicks) </span>"; Code (markup):
It might help you : $contentlink = echo '<font color='green'> $linktitle ('.$contenthits.' clicks)</font>'; Thanks!
@seoExposure -- you do know that FONT has no business in any HTML written after 1998, right? My question would be WHY are you making it the color you want, and is it the only element you are doing that to? does it have sibling anchors at it's level and/or a parent you could hook it off of. Whenever possible you should AVOID declaring presentation in your markup, since presentation is CSS' job, not HTML's. Which is why 'color="green"' or 'span class="silverfont"' is just as outdated and half-assed a way of writing markup as going back to HTML 3.2 (or using the new HTML 5 idiocy). But without seeing the actual output from your php -- the HTML itself, it's anyone's guess as to the best way to do what you ask... So far, to be frank what I'm seeing from the other respondents in this thread, that's usually the worst way. FONT... Christmas on a cracker, when the blazes are people going to join us in THIS century?
No fair, DS. Due to your sleep schedule, you always beat me. But +1 to your post. The web has more than enough bad code already, we don't need to add any.