trying to add the date on the same line of title
-
Hi folks,
recently built a “date in a cube” and removed the meta content
after the title which says: posted on.A peak of how it looks now: https://www.fortherestless.com/news
I have it outlined like such in the content.php,m calling the date via a class called.postdate
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a> <div class="postdate"> <span class="month"><?php the_time(M) ?></span> <span class="day"><?php the_time(d) ?></span> <span class="year"><?php the_time(Y) ?></span> </div> </h1>
and like this in the css.
.postdate {
position: relative;
font-family: Georgia, serif;
color: #000;
float: right;
width:65px;
height:65px;
}Problem is that I can’t get it at exact the same position.
Do I need to fix this through .postdate, with the position tag/margin tags ?Advice on how best to do this very welcome.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘trying to add the date on the same line of title’ is closed to new replies.