WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Alignment of a Photo with Text on a Page

[Resolved] Alignment of a Photo with Text on a Page

  • I uploaded a photo onto one of my pages. I selected Alignment Left and inserted the photo onto the page. Everything looks fine on the Edit Page Screen. However, when I look at the actual website page the text starts next to the bottom right of the picture instead of next to the top right of the picture which is where I want it. I even tried to insert another picture that aligned correctly on another page but it didn’t align correctly on this page. I’ve never had this problem before. Any suggestions? Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi

    @esmi

    Forum Moderator

    A link to a page demonstrating the problem would help.

    Here’s the link: http://www.mikebradbury.net/
    Thanks!

    esmi

    @esmi

    Forum Moderator

    Try editing style.css and adding:

    .aligncenter {
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    }
    
    .alignleft {
    	float: left;
    }
    
    .alignright {
    	float: right;
    }

    to the bottom of the file. Remember to press CTRL and F5 simultaneously when viewing the updated page/site. Or try emptying your browser cache. This should ensure that your web browser fetches a fresh copy of the page rather than serving up an out-dated copy from your own cache.

    Hi Esmi,
    It looks like it worked. Thank you very much. I really appreciate your help!
    Mike

    esmi’s advice works. Also, add the following to your photo code:

    class="alignleft"

    …or whichever class you’re using for a certain photo.

    I believe my problem is similar. Is there a way without html changes to have text align “even with” a photo. I have 4 photos on a page, and I want to have the text correspond with the specific photo. Here’s the page: http://effectivenessthroughawareness.net/about-jsj/ex-nf

    Thanks, Paul

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Alignment of a Photo with Text on a Page’ is closed to new replies.
Skip to toolbar