• Resolved bage1

    (@bage1)


    I seem to have a problem with image alignment, something in my stylesheet is preventing me from aligning them / wrapping text around them.

    I’m trying to align an image to the left so that text would wrap next to it, but am only getting this: http://i32.tinypic.com/fuvv6f.jpg

    here is my CSS:

    /[huge chunk of code moderated - please use a pastebin or link to file]
Viewing 8 replies - 1 through 8 (of 8 total)
  • please provide a link to your website.

    Peter

    Thread Starter bage1

    (@bage1)

    sorry about the lengthy paste, here is the CSS: http://pastebin.com/m7bfee292

    #content img {
    padding: 0;
    border: 0;
    max-width: 100%;
    margin: 5px 5px 5px 0;
    float: left;
    }

    Thread Starter bage1

    (@bage1)

    I tried that earlier, but it causes ALL images to align left despite what alignment I choose for them individually.

    this way, even if I have class="alignnone" in the image attributes, it looks like this: http://i29.tinypic.com/2d8qn1v.jpg

    the text is forced to the right side of the image even though its entered below it. How would I be able to choose whether the text is below the image or next to it?

    Now I’m confused: this is what you asked earlier:

    I seem to have a problem with image alignment, something in my stylesheet is preventing me from aligning them / wrapping text around them.

    And now you say you want the text below the image?

    Anyway, you don’t want images to appear inline, because that way it’ll become part of the text.

    Peter

    Thread Starter bage1

    (@bage1)

    at first I couldn’t get text next to an image even if I specified so when adding the image (img class=alignleft). it was still showing like in the first screeshot link, at the first row of the text.

    if I add “float: left” to the CSS, it forces ALL images to left instead of allowing me to manually choose how its placed.

    what I would like to do is be able to manually enter alignment for each image, so that some can be aligned to the left, others simply above or below text, some to the right etc.

    thanks for your help

    oke, clear… let me thing about that a minute 😉

    Peter

    Thread Starter bage1

    (@bage1)

    I looked through other themes, and found the alignments missing in mine (below), this seemed to correct it. I didn’t realize it before as I was only looking for something directly under parts with “img” 🙂

    .aligncenter,
    		div.aligncenter {
    		display: block;
    		margin-left: auto;
    		margin-right: auto;
    		}
    
    	.alignleft {
    		float: left;
    		}
    
    	.alignright {
    		float: right;
    		}
Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘problem with image alignment’ is closed to new replies.