WordPress.org

Support

Support » Themes and Templates » shifting images, that are controlled in the style sheet

shifting images, that are controlled in the style sheet

Viewing 6 replies - 1 through 6 (of 6 total)
  • 1. Define new classes for images that you want a different position.
    2. On a single post view the meta section is under the post – you will have to edit the single.php file to change it.

    hmmm… ok I see what I did wrong now….

    I’d put float:left… here…

    /* Begin Images */
    p img {
    padding: 0;
    margin: 0;
    max-width: 100%;
    float:left;
    }

    so obviously I removed that, But does anyone know where I put <div class=”alignleft”/> to get the posted image to sit where it did before(aligned left with text-wrap)

    If this theme is a K-clone, then “alignleft” should be defined already in the stylesheet, so just use it:
    <img src=......... class="alignleft" />
    (If you deleted it, then it is not in the stylesheet:)

    yeah it is defined, but when I apply it globally as I did in this piece of code..
    /* Begin Images */
    p img {
    padding: 0;
    margin: 0;
    max-width: 100%;
    float:left;
    }

    it shifts all the images to the left, but I have a couple of images in the meta at the bottom for ’email this item’ and ‘comments’ that I want to stay center aligned….

    all I want to do is apply the class=”alignleft” to the image I’ve posted with the article…

    Your problem is you don’t listen (=read) what is said to you:
    please, read again what I wrote NOT about your own code (which is completely un-necessary, btw) but about the stylesheet of your theme:
    http://www.solaceincinema.com/wp-content/themes/solace_2/style.css
    Just go and open it and find the
    /* Begin Images */ section. You’ll be surprised 🙂

    you’re right, but I didn’t explain myself properly. sorry :).

    i’m using the ‘post upload and paste’ upload plugin, and also the ‘WYSIWYG wordpress’, i’ve been using the upload the image and inserting it into the post as i’m writing it (using the little pop-over menu)and then of course I have to go into the HTML-view and add class=”alignleft” like you said 🙂 ….. is there anyway you think that I can make the class apply to the image automatically?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘shifting images, that are controlled in the style sheet’ is closed to new replies.
Skip to toolbar