PDA

View Full Version : Logo of my new Slideshow template is displaced


derlitograph
11-29-2007, 09:45 AM
This is the logo code of my image_template.html.
http://www.derlitograph.de/index.php
<div id="image_wrapper" style="width:<IMAGE_WIDTH>px;">

<div id="header" style="width:100%;left:-21px;">

<!--BEGIN logo-->
<div id="logo" align="left">
<div id="title">
<a title="click for home" href="index.php"><img src="templates/delicious_v1/images/derlitograph.gif" alt="derLitograph" border="0" /></a>
</div>

<div id="logo_sub">
<a title="click for home" href="index.php"><SITE_TITLE></a>
</div>
</div>

<div id="logo" style="width:<IMAGE_WIDTH>px;">
<!-- logo_sub -->
</div> <!-- logo -->
I wanted to include this code also into my slideshow_template.html:
http://derlitograph.de/templates/delicious_v1/images/slideshow_template.jpeg

Something is wrong with it. Who knows?

Manuel

austriaka
11-29-2007, 01:24 PM
I guess it is this line:
<div id="image_wrapper" style="width:<IMAGE_WIDTH>px;">
I am afraid that the slideshow template doesn't know anything about an image width, does it? (check the source code of slidesho page for that).
Better you set a fixed width for the wrapper here but without seeing the life page it is hard to tell :-)

derlitograph
11-29-2007, 01:54 PM
I tried to set 533px as width but then everything went a littlebit to the right side.
HTML is a strange language to learn.

derlitograph
11-29-2007, 02:17 PM
The 533px does not work and I ask myself:
"Why does the SLIDESHOW-TEMPLATE not know about the IMAGE WIDTH?"
How to integrate that?

austriaka
11-29-2007, 02:37 PM
most Pixelpost tags are only available in the original templates. To make them available in other templates you simple have to do the replacement function in the addon script which makes use of the template.

I have bothered about that fact very often too. Although I can hack any file or rewrite whole Pixelpost from scratch it would be much more comfortable to have no restrictions in using Tags.

Perhaps in Pixelpost 2.0 there will be a solution...

derlitograph
11-29-2007, 02:50 PM
Hmm, okay... well no problem.
I will not die because of it.

Pixelpost is really great and I love it. Good work and thanks to you!