• Hi,

    i got a big problem and don’t know the solution. I’m still working on an own WP-Theme and when i type in a very long Post title the title flows over the sidebar. The Content too. So what is wrong and how can i change it?

    <div class="article">	
    
    			<h2><a href="<?php the_permalink() ?>"><? the_title( ); ?></a></h2>
    
    			<?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
    
    		<div class="solidLine">&nbsp;</div>
    
    		<div class="entry">
    
    		<?php the_content(); ?>
    
    		</div>
    ..

    I tried in CSS to set the overall Div (section) to overflow hidden. But this cut only the overflow stuff.

    So what can i do?

Viewing 15 replies - 1 through 15 (of 17 total)
  • Can you attach the current CSS that you are using? Seems like it may be an issue with the width of your container.

    Thread Starter adrinho

    (@adrinho)

    #section {
    	position: relative;
    	float: left;
    	width: 594px;
    	margin: 0 0 25px;
    }
    #aside {
    	position: relative;
    	float: left;
    	width: 250px;
    	padding: 0 15px 0 70px;
    	margin: 0 0 25px 25px;
    	background-color: #9699a3;
    }
    Thread Starter adrinho

    (@adrinho)

    When i change the width of the #section div the header still overflow. Its like the header is positioned absolute but its not :(.

    Please give link.

    Thread Starter adrinho

    (@adrinho)

    When i activate the TwentyTen Theme. It’s the same Problem both the post title and the content overflow.

    Thread Starter adrinho

    (@adrinho)

    I’m working locally right now. Can’t upload it ?? at the moment.

    without knowing the width of the container that #section and #aside are in, I’d say you can try

    #section {
      white-space: normal;
    }

    You may have nowrap somewhere.

    adrinho use chrome inspect elements. seems your content is rendering
    pre tag that is making content area wider. you already changed the theme it means either you have pre tag or you have some element which width is more than your content section. please review your content in html mode.

    Welcome in advance.

    Thread Starter adrinho

    (@adrinho)

    Here a screenshot

    @john > no luck with that solution

    Do you have space between words? seems to me no space between words.

    I agree. Once there are spaces, the content should break up automatically like in the second post in the image.

    Thread Starter adrinho

    (@adrinho)

    Good idea pankaj, i solved the post title problem but the post content still overflows.

    Thread Starter adrinho

    (@adrinho)

    Thanks, guys. OMG, this is so ridiculous! Man, i left so much time with this #?+>#?> Problem. Lol! Thank you sooo much!!!!!!!!!!!!!!!!!!

    try some actual content. copy from any news website or use lipsum.com. that was a simple content wrapping issue.

    Thread Starter adrinho

    (@adrinho)

    I will my friend! I’ll test it till it explode! ??

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Post Title and Post Content overflow’ is closed to new replies.