• Resolved Heidiii

    (@heidiii)


    Newbie alert!

    I’m using the Corptheme (corpgreen) from Blogohblog, and I am having som problems with the placement of images on the pages. Here is how it looks like:
    http://www.gnagergleder.de/hamster/hamsterartene/
    (it’s a charity page, and yes I am an adult 😉 )

    I would like the pictures to be placed more to the right, so it is aligned with the margin of the text. I would also like there to be more space between the text and the image to the right, to make it easier to read. How do I do that?

    Here is the code (I think):

    /**************** Misc *********************/
    acronym, abbr, span.caps { cursor: help; }
    acronym, abbr { border-bottom: 1px dashed #999; }
    blockquote { margin: 15px 30px 0 10px; padding-left: 20px; border-left: 5px solid #ddd; }
    blockquote cite { margin: 5px 0 0; display: block; }
    .center { text-align: center; }
    hr { display: none; }
    a img { border: none; }
    .alignright{ no-repeat right;float:right;padding-right:20px; margin-right:20px; font-size:14px; font-weight:;}
    .alignleft{ no-repeat left; float:left;padding-left:20px; margin-left:20px; font-size:14px; font-weight:;}
    img.centered{display:block;margin-left:auto;margin-right:auto;}
    img.alignright{display:inline;margin:0 0 2px 7px;padding:4px;}
    img.alignleft{display:inline;margin:0 7px 2px 0;padding:4px;}
    pre {border: solid 1px #9a9a9a;color: blue;margin: 10px;padding:10px;background: #f3f2ed}
    code {font-size:1.0em;color: #000}
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Heidiii

    (@heidiii)

    I followed the WP tutorial for wrapping text around images, and the pictures are now aligned with the text, but I am still not able to make a space between the picture and the text.

    Thanks in advance!

    Just give the image some margin…
    Since it’s a medium size image you can use..

    .size-medium {margin:10px!important}

    Set the margin as you want…

    If you just want left margin do it like so…

    .size-medium {margin:0 0 0 10px!important}

    You likely won’t need the !important part, but if the code doesn’t work try it with…

    First 0 is top
    Second 0 is right
    Third 0 is bottom
    And of course the 10px is left…

    I think of it like this to remember…

    North East South West… (top right bottom left)…

    Thread Starter Heidiii

    (@heidiii)

    Thank you very much! One other problem occured though, the image caption didn’t follow the image.

    Change…

    .size-medium {margin:0 0 0 10px!important}

    and do this instead of the above..

    .wp-caption {margin:0 0 0 10px!important}

    It should do both the image and text then…

    Thread Starter Heidiii

    (@heidiii)

    Thanks again!

    You’re welcome 🙂

    I’m trying to put space between images in a row, what used to be ‘hspace=”4″‘ for example, how do I space images = 4px???

    In other words, 4 images side by side, but seperated by spaces <img src=”” alt=”” 4px?? />

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘About images’ is closed to new replies.