Today I spent at least one hour trying to fix some code on another site I am working on. It was such a pain to do, that I am writing the solution here so that others may learn from my struggles.
The problem was that I had a piece of php code outputing some nice html on the webpage, but I could not figure out how to edit the font of the html. Php uses the ‘echo’ command to output html, which is great and really simple. However, for the life of me I could not make the desired output in bold face, which was so frustrating. I was not sure if I would need to use css or not, but found finally found the quick and easy solution here.
Originally my code looked like:
|
Which I needed to change to:
|
Notice the bold html tags <b> are in quotes. This was critical to get it to work, but not sufficient. The critical part was actualy putting the periods! So annoying. Anyway, notice the additional periods after the opening bold tag quotation marks and after the php command itself.
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
You must log in to post a comment.