• Resolved Ollie Ford

    (@ollie-ford)


    Hi, I’ve got an issue with my theme (Dark Zen) whereby if the post title is longer than around 10char, it just moves down to the next line, and then another one if necessary.

    This looks quite ugly against the date icon, which is t the left of the title. How can I align them? I can’t find a “thetitle” class in the CSS stylesheet, and I also can’t seem to change the width of it to force it to fit with a width=”” tag.

    Here’s the code:

    <div class="posttop">
    					<div class="dateicon">
    						<div class="day"><?php the_time('d') ?></div>
    						<div class="month"><?php the_time('M') ?></div>
    					</div>
    					<div class="title">
    						<div class="thetitle"><a>" rel="bookmark"><?php the_title(); ?></a>
    						</div>

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael

    (@alchymyth)

    link to your site?

    without seeing the formatting issue, there is not much to suggest.

    Thread Starter Ollie Ford

    (@ollie-ford)

    I got it sorted, albeit without knowing quite what I did.

    Thanks anyway.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to align two div classes next to each other? Or change post title width?’ is closed to new replies.