Formatting Text Output From PHP
-
I’m currently attempting to build my own theme from the ground up while learning php at the same time, how fun. My question is about the Latest News section on my site here – https://107.9.172.144/
Underneath the posts title is the authors name and what category the post was placed in, which is called up by the following code:
By <?php the_author_posts_link() ?> in <?php the_category() ?>
Simple right? I have no idea why the first part (By “authors name”) and the second part (in “category”) are split and aligned completely apart and on seperate lines.
When PHP outputs to text does it do some sort of autoformatting? How can I change this? I should also mention that this code is being formatted by a css div with the following code:
.postdata { margin: auto; text-align: left; font-family: verdana; font-size: 12; }
Thank you to anyone who can explain this to me!
- The topic ‘Formatting Text Output From PHP’ is closed to new replies.