You don't need a table for 'best alignment'. Tables are often easiest though for folks not familiar with the more recent and more economical (code and load time wise) elements like <div>, <span>, <br>, etc. styled using css that can be employed. What you have on your demo page right now, with one </p> that has no opening <p> tag and a <p> tag later, after everything else in the body, that has no closing </p> would confuse most browsers though:
Code:
<body>
<a href="image1.jpg" rel="lightbox[effects]">
<img src="image1_small.jpg" border="0" width="100" height="80"></a>
</p>
<a href="image2.jpg" rel="lightbox[effects]">
<img src="image2_small.jpg" border="0" width="100" height="80"></a>
<p>
</body>
I would suggest that you use a title attribute for the links as shown in my previous post (they can be whatever you like) or use an empty title with one space character included:
Code:
<a href="image1.jpg" rel="lightbox[effects]" title=" ">
<img alt="" src="image1_small.jpg" border="0" width="100" height="80"></a>
as, otherwise some browsers will show 'null' where the title would go. If you use the one space title for the link, you need an empty alt for the image. Alt attributes (even if empty) are required for valid HTML anyway.
OK, now on to positioning the lightbox effect lower, find this in lightbox.css:
Code:
#outerImageContainer{
position: relative;
background-color: #fff;
width: 250px;
height: 250px;
margin: 0 auto;
}
Change it to:
Code:
#outerImageContainer{
position: relative;
background-color: #fff;
width: 250px;
height: 250px;
margin: 50px auto 0 auto;
}
You can use any value you like (within reason) for the 50px I've inserted.
Bookmarks