Viewing 8 replies - 1 through 8 (of 8 total)
  • Try adding:
    clear:both to style.css (line 226) like so:

    #content p {
    clear:both;
    line-height:20px;
    margin:0;
    padding:0 0 15px;
    }

    Does that do what you’re looking for?

    Thread Starter sociallys

    (@sociallys)

    YES! AMAZING THANK YOU SO MUCH!!!

    but the images won’t center ??

    Thread Starter sociallys

    (@sociallys)

    does anyone know how i can fix my stylesheet so I am able to center my images in my post?

    The easiest way to do this with CSS sometimes is to wrap the image in a <div> or other block-level element and applying the styles to the containing element.

    But, try changing this:

    #contentmiddle p img{
    	float: left;
    	border: none;
    	margin-right: 15px;
    	margin-bottom: 10px;
    	}

    to this:

    #contentmiddle p img{
    	float: none;
    	display:block;
    	border: none;
    	margin:0 auto 10px;
    	}

    I’d suggest making it even more specific like so:

    #contentmiddle p img.aligncenter{
    	float: none;
    	display:block;
    	border: none;
    	margin:0 auto 10px;
    	}

    Hope that helps. ??

    Thread Starter sociallys

    (@sociallys)

    FANTASTIC YOU ARE AMAZING!

    Aw, shucks. Thanks.

    I’m having the same issue… i was able to fix it so that it works in safari, but it still doesn’t wrap in firefox. here’s a test post:

    https://laaroo.com/goods/fun-with-fred/

    Thanks!

    also… why can’t I center the image in my footer??

    dagenius

    (@dagenius)

    Do you think you could view my source and tell me how to fix my css to get the text under the image as well?

    my url is:

    https://dageniusmarketer.com

    I try:
    <div style=”clear:both;”></div>

    on a post by post basis, but that breaks the padding for the text, making it look ugly. So what do i change in my css for it to be correct?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Text will not go under images in posts’ is closed to new replies.