Category Post Titles Loop without Line Breaks
-
I’ve created an auto-feed of post titles from a specific category, and am looking for a way to make each individual title not wrap to the next line. If a single title is too long to fit on a line, I’d like them to move to the next line. Here’s the current coding:
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <img src="/test/images/snowflake.png"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title() ?></a> <?php endwhile; ?> <?php endif; ?> <img src="/test/images/snowflake.png">
and the css:
.lineup { font-size: 28px; font-family: "StationNoOne"; color: #453325; text-transform: uppercase; line-height: 1.5; text-align: center; width: 940px; margin-left: 37px; }
and the site is here:
https://themusicfest.com/test/Any ideas?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Category Post Titles Loop without Line Breaks’ is closed to new replies.