Moving Featured Images on Blogs with CSS.

8 replies
  • WEB DESIGN
  • |
I've been trying to move my featured images on my blogs Make Fitness Simple – Ways to make fitness Simple It's basically home page inserted with a blog code. I've been watching youtube videos and browsing the net and this seems to be the common CSS to use when moving images.

.imga { float: left ;
margin-left: 50px
}

Unfortunatley, It's just not working for me. I'm not exactly if i'm putting it on the wrong CSS box on my theme or if my CSS is wrong.

Thanks.
#blogs #css #featured #images #moving
  • Profile picture of the author denysapu
    Which featured images you mean?
    Signature

    Don't worry be happy!

    {{ DiscussionBoard.errors[7453765].message }}
    • Profile picture of the author LearnNOTmoney
      Originally Posted by denysapu View Post

      Which featured images you mean?
      The images that shows on the blog/articles. I wanted to move it to the lef instead of the current design being at top of the article. I want it to have a cleaner look.
      {{ DiscussionBoard.errors[7453815].message }}
  • Profile picture of the author nesterdwarf
    In a regular HTML document, what you have there would work. However, inside WP things can get tricky... Making the following changes to your 'styles-default.css' should accomplish what you are wanting to do -

    .the-post-content
    {
    clear: left; <---REMOVE THIS
    padding: 18px 15px 0;
    margin: 0 0 22px;
    }

    .entry-header
    {
    margin-bottom: 23px;
    margin-left: 150px; <---ADD THIS
    }

    .entry-content {
    font-size: 12px;
    line-height: 1.4;
    margin-left: 150px; <---ADD THIS
    margin-top: -120px; <---ADD THIS
    }

    HTH
    ND
    {{ DiscussionBoard.errors[7453998].message }}
    • Profile picture of the author LearnNOTmoney
      Thank you very much. I will thank you for years to come

      EDIT: It worked, i only have one problem though the spacing between the text and the image is too small making some letters difficult to see.

      {{ DiscussionBoard.errors[7457136].message }}
  • Profile picture of the author clickbump
    Add this to your css:

    Code:
    .the-post-image figure{float:left}
    Signature
    {{ DiscussionBoard.errors[7457403].message }}
  • Profile picture of the author nesterdwarf
    You should be able to increase the two values for margin-left (150px in the example, try making them 165 or so...) to move the text over more...

    ND
    {{ DiscussionBoard.errors[7459160].message }}

Trending Topics