the_time( ) custom styling help needed
-
So I need some help styling the_time().
I am trying to make a 2-level date. On the top I will have the day and the suffix, sitting beneath it I will have the month & year.
Here is the theme I currently building…
https://tymayn.com/themebuilder/news/latest-around-here/
If you see on the left there is a green box, and the date is going to sit in there. As for now it just says 17th, and I have this code in there for now…
<div id="date_holder"> <?php the_time('d'); ?><?php the_time('S'); ?> </div>
I am trying to make the date number a larger font, and then the suffix a smaller font on the right.
I have tried giving them their own div’s like this…
<div id="date_holder"> <div class="class1"><?php the_time('d'); ?></div><div class="class2"><?php the_time('S'); ?></div> </div>
But when I do the above it puts the suffix down to the next line, and even then it still won’t change the font-size of the text.
Any suggestions?
- The topic ‘the_time( ) custom styling help needed’ is closed to new replies.