picture alignment?

DarkHelmet

Joined: 2002-11-10
Posts: 10
Posted: Sun, 2002-11-10 05:55

Hello,

First post :wink:

I have been trying to get my gallery all custom'ed out. This is my first gallery and my first website. so I am a bit of a newbie. I seemed ot have messed something up. For some reason my mid-sized image is now left justified instead of centered. Take a look <!-- BBCode Start --><A HREF="http://www.tailboom.com/gallery/slope/IMG_2947" TARGET="_blank">here</A><!-- BBCode End -->

I only noticed this after makeing several changes. I am not completely sure how this got changed, or how to fix it. Anyone help point me in the right direction?

Thanks in advance.

--pat

 
DarkHelmet

Joined: 2002-11-10
Posts: 10
Posted: Sun, 2002-11-10 07:27

A bit more info. I found out what is causing it. sort of .. When I add the line "<?php include("http://www.tailboom.com/gallery_head.php");?>"

to the following code in the photo.header If I remove that line, the photo is now centered as expected, but I don't get my header menu for my site.

What am I doing wrong?

photo.header file is:

<? includeHtmlWrap("wrapper.header");?>

<table width=100% border=0>

<tr>
<td>
<?php include("http://www.tailboom.com/gallery_head.php");?>

<span class="head">

<?= $gallery->album->fields["title"] ?>
</span>
</td>
</tr>
<tr>
<td align="center" valign="top">

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Sun, 2002-11-10 21:34

So if you include your own .php file it doesn't work. And if you don't include it, then it works.

That begs the question: what's in that custom .php file?

 
DarkHelmet

Joined: 2002-11-10
Posts: 10
Posted: Sun, 2002-11-10 22:56

Here it is ... If I am doing something wrong, please let me know.

Thanks

>>>>>>>>>>>>>>>>>>>>>>>>>>

<table height="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td valign="top" width="360" >
</td>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="500">
<tbody>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><b><a href="http://www.tailboom.com/page.html">abouttttt</a>&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;</b>
</td>
<td><b><a href="http://www.tailboom.com/page.html">nettttws</a>&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;</b>
</td>
<td><b><a href="mailto:info@tailboom.com">contact</a>&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;</b>
</td>
<td><b><a href="http://www.tailboom.com/gallery/">gallery</a>&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;</b>
</td>
<td><b><a href="http://www.tailboom.com/booms.html">booms</a> |&amp;nbsp;&amp;nbsp;&amp;nbsp;</b>
</td>
<td><b><a href="http://www.tailboom.com/page.html">links</a>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</b>
</td>
<td><b><a href="http://www.tailboom.com/index.html">homepage</a>&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;</b>
</td>
</tr>
</tbody>
</table>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

 
DarkHelmet

Joined: 2002-11-10
Posts: 10
Posted: Mon, 2002-11-11 06:35

I fixed it! There was a missing <td> tag before one of the nested tables. Here is the fixed code.

--pat

<table height="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td valign="top" width="360" >
</td>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="500">
<tbody>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><b><a href="http://www.tailboom.com/page.html">about</a>&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;</b>
</td>
<td><b><a href="http://www.tailboom.com/page.html">news</a>&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;</b>
</td>
<td><b><a href="mailto:info@tailboom.com">contact</a>&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;</b>
</td>
<td><b><a href="http://www.tailboom.com/gallery/">gallery</a>&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;</b>
</td>
<td><b><a href="http://www.tailboom.com/booms.html">booms</a> |&amp;nbsp;&amp;nbsp;&amp;nbsp;</b>
</td>
<td><b><a href="http://www.tailboom.com/page.html">links</a>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</b>
</td>
<td><b><a href="http://www.tailboom.com/index.html">homepage</a>&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;</b>
</td>
</tr>
</tbody>
</table>
</td>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Tue, 2002-11-12 00:31

I'm glad you found it: I wasn't looking forward to slogging through your HTML code to find the mismatch :smile: