Social Web Directory :: Social Network Directory :: Ning Tips and Ning Support
How to add images side-by-side in a Ning text box, page, or any HTML web page.
There are 2 methods:
Table Method Using Social Media icons and example links:
CODE FOR EXAMPLE ABOVE:
<div align="center"><table cellpadding="0" width="400" cellspacing="0"><tr><td><a href="http://www.facebook.com/pages/yourfanpage/12345678" target="_blank"><img src="http://storage.ning.com/topology/rest/1.0/file/get/301625658?profile=original" alt="Join Our Facebook Fan Page" width="128" height="128" border="0"></a></td><td><a href="http://www.myspace.com/yourpage" target="_blank"><img src="http://storage.ning.com/topology/rest/1.0/file/get/301627289?profile=original" alt="Check Us Out On MySpace" width="128" height="128" border="0"></a></td><td><a href="http://twitter.com/yourtwitter" target="_blank"><img src="http://storage.ning.com/topology/rest/1.0/file/get/301628949?profile=original" alt="Follow Us On Twitter" width="128" height="128" border="0"></a></td></tr></table></div>
Notes:
SIMPLE CODE, NO TABLE:
Let's do this without using a TABLE. We don't have to use a table, because images will automatically float left one after the other when contained within a DIV. A DIV is a little more difficult to edit or harder on the eyes, but all-in-all it's cleaner code.
<div align="center"><a href="yourlink.com" target="_blank"><img src="yourimage.jpg"></a><a href="yourlink.com" target="_blank"><img src="yourimage.jpg"></a><a href="yourlink.com" target="_blank"><img src="yourimage.jpg"></a></div><div align="center"><a href="yourlink.com" target="_blank"><img src="yourimage.jpg"></a><a href="yourlink.com" target="_blank"><img src="yourimage.jpg"></a><a href="yourlink.com" target="_blank"><img src="yourimage.jpg"></a></div>
<div align="center"><a href="yourlink.com" target="_blank"><img style="float:left;" src="yourimage.jpg"></a><a href="yourlink.com" target="_blank"><img style="float:left;" src="yourimage.jpg"></a><a href="yourlink.com" target="_blank"><img style="float:left;" src="yourimage.jpg"></a></div><div align="center"><a href="yourlink.com" target="_blank"><img style="float:left;" src="yourimage.jpg"></a><a href="yourlink.com" target="_blank"><img style="float:left;" src="yourimage.jpg"></a><a href="yourlink.com" target="_blank"><img style="float:left;" src="yourimage.jpg"></a></div>
Tags:
Hi Jen, It has been a while. I am trying to use tables on the page http://phuzemthonjeni.com/learnerships-internships but the content does not line up. Please help
Phuze,
I tried to edit your code, but too much of it. There are so many divs, it's difficult to see where a table cell <td> starts and ends </td>. Ideally, you need to set the valign of the table row <tr> to top. But that didn't seem to help due to so many styles within the DIVs.
http://www.htmlcodetutorial.com/tables/_TR_VALIGN.html
Best,
Jen
Hi Jen
Thank you valign. I have simplified the code and only have one table but still not aligning. Please check once more if you can't see anything strange.
http://phuzemthonjeni.com/learnerships-internships
Regards
Hi Phuze,
I looked, and way too much code to go through. Bottom line, if you want these rows to line up, the best way is with a table and cells. Use valign to force all cell content to go to top.
<table>
<tbody>
<!-- Row #1 -->
<tr>
<td>Row 1-Column 1</td>
<td>Row 1-Column 2</td>
<td>Row 1-Column 3</td>
</tr>
<!-- Row #2 -->
<tr>
<td>Row 2-Column 1</td>
<td>Row 2-Column 2</td>
<td>Row 2-Column3</td>
</tr>
<!-- Row #3 -->
<tr>
<td>Row 3-Column 1</td>
<td>Row 3-Column 2</td>
<td>Row 3-Column3</td>
</tr>
</tbody>
</table>
Welcome to
JenSocial: Social Web Directory and Ning Tips
Posted by JenSocial on May 7, 2018 at 8:35pm 9 Comments 1 Favorite
Posted by JenSocial on January 6, 2017 at 4:00pm 10 Comments 1 Favorite
Posted by JenSocial on October 22, 2016 at 1:05am 0 Comments 0 Favorites
Posted by JenSocial on September 17, 2016 at 12:00am 26 Comments 1 Favorite
Posted by JenSocial on August 31, 2016 at 3:30pm 13 Comments 0 Favorites
Ning 3.0 Tip - Add Buttons/Links Below Status Update (Quick Links to Add Photos, Posts, Discussions)
Started by Themes - Rosas Negras Mar 20, 2021. 0 Replies 0 Favorites
Started by JenSocial. Last reply by Kos Dec 6, 2016. 64 Replies 4 Favorites
Started by JenSocial. Last reply by JenSocial Jul 26, 2016. 41 Replies 1 Favorite
© 2024 Created by JenSocial. Powered by
© Copyright JenSocial.