WordPress.org

Ready to get started?Download WordPress

Forums

Align issue with 3 images (mostly HTML) (2 posts)

  1. dazzle415
    Member
    Posted 4 years ago #

    Hello,

    I'm trying to center 3 images equally on a page. The code I have is similar to this;

    <a href="http://webpage-url.com" target="_blank"><img src="http://image-location.jpg" align="left"" width="200" height="100" /><a href="http://webpage-url.com" target="_blank"><img src="http://image-location.jpg" align="center"" width="200" height="100" /><a href="http://webpage-url.com" target="_blank"><img src="http://image-location.jpg" align="right"" width="200" height="100" />

    I've tried isolating the middle code with the <center></center> code but it's putting the image on a new line below.

    Any help would be awesome.

    Thanks,

  2. Jon Griffith
    Member
    Posted 4 years ago #

    You could try creating 3 divs all floating left each with their width styled to a 3rd of the width of the entire page or content area, then text align each div centered so the images sit centered inside each div.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags