Help with HTML images aligning

January 23rd, 2020

Please ppl,can someone help me,I have web forum but the problem is I don't know how to solve the problem with aligning images(READ:PICTURES not TEXT).The problem is smt like this: <a href="http://www.pcigre.com" target="_blank"><img border="2" src="http://www.pcigre.com/templates/pcigre2/images/logo.jpg" width=300 height=120/></a> <a href="http://www.ancient-wars.com" target="_blank"><img border="2" src="http://img269.imageshack.us/img269/9192/lolvtf.jpg" width=300 height=120/></a> You see I want these pictures to be aligned in the center ,but if I put <a href="http://www.pcigre.com" target="_blank"><img border="2" src="http://www.pcigre.com/templates/pcigre2/images/logo.jpg" width=300 height=120 ALIGN="CENTER"/></a> <a href="http://www.ancient-wars.com" target="_blank"><img border="2" src="http://img269.imageshack.us/img269/9192/lolvtf.jpg" width=300 height=120 ALIGN="CENTER"/></a> then the images will stand one below other,and thats not what I look for.I want them to be in the same order bur center aligned .Any help would be very useful. Thanks in advance !Please remember that ALL links must be coded, including, but not limited to, e-mail addresses, passwords, and internal links. Coded for you this time
~mank

Answer #1
hello
you can use a table , or just but them in a div

<div align="center">
          <a href="http://www.pcigre.com" target="_blank"><img border="2" src="http://www.pcigre.com/templates/pcigre2/images/logo.jpg" width=300 height=120/></a>
          <a href="http://www.ancient-wars.com" target="_blank"><img border="2" src="http://img269.imageshack.us/img269/9192/lolvtf.jpg" width=300 height=120/></a>
</div>

but i think u are making an ads , so i recommend

<table align="center" border="0">
   <tr>
      <td align="center">
          <a href="http://www.pcigre.com" target="_blank"><img border="2" src="http://www.pcigre.com/templates/pcigre2/images/logo.jpg" width=300 height=120/></a>
      </td>
      <td align="center">
          <a href="http://www.ancient-wars.com" target="_blank"><img border="2" src="http://img269.imageshack.us/img269/9192/lolvtf.jpg" width=300 height=120/></a>
      </td>
   </tr>
</table>

repeat the <tr>…….</tr> section to make a new row
repeat the <td>…..</td> to make a new cell at last , you must have a look at www.w3school.com
welcome
Answer #2
THANX A LOT I own you man

 

| Sitemap |