Forums

leftalign image in template file (1 post)

  1. chrisjacobs91
    Member
    Posted 7 months ago #

    I am using the following code in my single.php page to insert the posts feature image at the top left of the page aligned to the left. This seemed to be working fine until my post content was long enough to wrap back underneath the image.

    the content does not wrap underneath and the page navigation is also restrained to the portion of the site that remains to the right of the top left image.

    the footer, however, takes up the full width.

    can anyone help? I have used img class="alignleft" for an image in the post itself and this aligns perfectly, so it's just something not working with an image in a template file as far as i can tell.

    here is my code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I cant send the page link as its not available to those not logged in. any help will be greatly appreciated!

    cheers!

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 7 months ago by chrisjacobs91
  • This topic is not resolved
  • WordPress version: 3.2.1