I have the latest version of Zenphoto. When I look at my images while logged in as administrator, the image's description is under the image name and everything looks fine. When I log out, the description is centered and over the photo!
Any ideas on how to fix it?
www.natashajapp.com
Mac OSX, Firefox.
Comments
Unfortunately, I'm have my own problems with page rendering ZP 1.2.2 (see here: http://www.zenphoto.org/support/topic.php?id=4429#post-26196) I hope they get things sorted out soon.
Changed the photos.css file:
Under Description, I added:
#desc sml {
max-width:30em;
margin:0;
padding:10px 15px 5px 265px;
border-width:0;
font:100% Verdana,Sans-serif;
line-height:1.6em;
letter-spacing:0;
text-transform:none;
text-align:left;
}
Then I changed the style for the description at image.php file, line 35:
<sml><?php printImageDesc(true); ?></sml>
Seems to work for now. If someone comes up with another solution I'd love to know!
Look for
#desc {
position:absolute;
top:170px;
right:0;
width:50%;
text-align:left;
and add
`text-indent: 265px;`
}
Look for
#desc h1 {
background:url("../images/divider_r.gif") no-repeat 265px 0;
max-width:30em;
margin:0;
padding:10px 15px 5px 265px;
border-width:0;
font:bold 100% Verdana,Sans-serif;
line-height:1.6em;
letter-spacing:0;
text-transform:none;
text-align:left;
and add
`text-indent: 0px;`
}
I didn't check what happens with more than one line
and what happens if you are logged in :-(
I'll keep on looking
In image.php add a <div>
<div id="desc" style="z-index: 100">
<?php if (!checkForPassword(true)) { ?>
<h1><?php printImageTitle(true); ?></h1>
`
<?php } ?>
</div>
then in photo.css add
`
#anything {
margin-left: 265px;
white-space: nowrap;
}
`
and comment the line in
#desc #imageDesc {
`/*margin-left:265px; */`
}
Tested in IE7 and FF 3.0.3 Windows
- thanks fretzl !
Maybe you can post the pieces of PHP and CSS code you are using so I can have a look.
<div id="desc" style="z-index: 100">
<?php if (!checkForPassword(true)) { ?>
<h1><?php printImageTitle(true); ?></h1>
<div id="anything"><?php printImageDesc(true); ?></div>
<?php } ?>
</div>
In photo.css I added:
#desc #imageDesc {
/* margin-left:265px; */
}
#anything {
margin-left: 265px;
white-space: nowrap;
}
Just a guess, try this:
#anything {
margin-left: 265px;
white-space: nowrap;
`display: block;`
}
Thanks for the help.
imlah
white-space: nowrap;
Does the removal of this line break the layout in some version of IE?
Just remove it