WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] CSS to change image position? (2 posts)

  1. sequenceinc
    Member
    Posted 6 years ago #

    I have recently changed my template and see that the template it forcing images to the left, even though within the post I have the image set to be right justified.

    http://www.sequence-inc.com/fraudfiles/2008/05/05/nominee-for-mother-of-the-year/

    I can see in the source of that page that it is forcing everything to the left w/ p style="text-align: left;". I just can't seem to get rid of it.

    I have tried removing various things from the style sheet, but can't seem to find the right code. It's driving me crazy! Would a new set of eyes be so kind as to look at the style sheet and help me out?

    http://www.sequence-inc.com/fraudfiles/wp-content/themes/fjords01-10/style.css

    Or is it something other than the stylesheet that is causing this and would a kind soul please help me out?

  2. sequenceinc
    Member
    Posted 6 years ago #

    Mystery solved. (It never fails... I figure it out after I post.)

    Although the source code show the following related to the picture:

    <img class="alignright size-thumbnail wp-image-1464" title="vandeburg" src="http://www.sequence-inc.com/fraudfiles/wp-content/uploads/2008/05/vandeburg-150x150.jpg" alt="" width="150" height="150" />

    That class was not recognized by my theme. (CSS problem? Not sure.)

    I removed that and instead coded the picture to align right, and it works now. Source now looks like this:

    <img style="float: right;" title="vandeburg" src="http://www.sequence-inc.com/fraudfiles/wp-content/uploads/2008/05/vandeburg-150x150.jpg" alt="" width="150" height="150" />

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.