Hey guys, I'm having the worst time styling a few posts-from the loop- with featured images. I have the featured image floated to the left. It's enabled in my theme's function.php file. As you can see, I'm not specifically calling it with my code that's below. I'm thinking that might be half my problem.
I'm going for the standard blog layout that you see everywhere. Featured image on the left and then the post's title and entry excerpt below that. As seen on the http://wp.tutsplus.com/ site, for example.
If I keep with the floated featured images, the post's title and entry just stay put in the middle of the div. If I try any margin or padding to move them whatsoever, things go all haywire. I'm thinking that it's because the floated featured image is just kind of "there". I'm not specifically calling it in the code. I'm just rambling now. Does anyone have any tips for me, on this?
Here is the code I'm using to pull in the last 5 posts:
<?php else : ?> <h2>Not Found</h2> <p><?php _e("Sorry, no posts or pages could be found. Why not search for what you were trying to find?"); ?></p> <?php get_search_form(); ?>
This isn't the best solution, but if you're keen on not having the text wrap under the image, you can do something like this: http://jsfiddle.net/wfwx2/
I have the featured image floated to the left.
It's enabled in my theme's function.php file.
As you can see, I'm not specifically calling it with my code that's below.
I'm thinking that might be half my problem.
I'm going for the standard blog layout that you see everywhere.
Featured image on the left and then the post's title and entry excerpt below that.
As seen on the http://wp.tutsplus.com/ site, for example.
If I keep with the floated featured images, the post's title and entry just stay put in the middle of the div. If I try any margin or padding to move them whatsoever, things go all haywire. I'm thinking that it's because the floated featured image is just kind of "there". I'm not specifically calling it in the code. I'm just rambling now. Does anyone have any tips for me, on this?
Here is the code I'm using to pull in the last 5 posts: