Horizontal alignment

karlh
avatar
rank newbie

newbie


Posts: 6
Joined: 2008-07-20
Location: london

Hi.
A Google search brought me here and I saw the replies to problems I have been trying to solve. I have registered and hope that I will find more good information and solutions.

My problem is:
By default the Lightbox shows in the centre of the page. I wish for it to show in a different area. I have tried all sorts of ways, but have failed so far to align the new image horizontally...
Is there a solution? I guess somewhere around line 233 in the lightbox.js script may be the opportunity to set the parameters? All of the images I wish to show are of the same size and will be shown as single images..
any ideas greatly appreciated
thanks
Karl,London

karlh
karlh's picture
rank newbie

newbie


Posts: 6
Joined: 2008-07-20
Location: london

Lightbox loading image

The images in my Lightbox are relatively small, so the 'loading' image shows for very short time, therefore appearing as a flash, rather than an image. How could I disable this function, please?
Karl,London

karlh
karlh's picture
rank newbie

newbie


Posts: 6
Joined: 2008-07-20
Location: london

Lightbox 'close' image

I have amended the code in js file, to show the enlarged image at a different location and of different size. I now get the 'close' button at the bottom right of the screen, rather than the box. And it is quite large, in both aspects..
Any help how to position it properly and of correct size, would be appreciated, please

Hugo
Hugo's picture
rank Moderator

Moderator


Posts: 12583
Joined: 2004-06-06
Location: London

Karl I have pruned your

Karl I have pruned your original post that you made to an old thread and created a new topic for you I have also crafted the other two seperate posts you have made into this one.

Try to keep all responses to this one please as it's easier to follow the 'thread' also posting to old threads will tend to just get lost, so always better to start a new topic if you have a problem.

This is possibly not a pure CSS question so I have placed it in 'off topic' , also you might have to provide some sight of code that you are working with or link to the page uploaded somewhere, please check the posting guidelines as they will help to let you know what we need in order to provide useful assistance.

Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

karlh
karlh's picture
rank newbie

newbie


Posts: 6
Joined: 2008-07-20
Location: london

Close image

Hogo: Many thanks. Below is the Doctype of my website. I doubt though whether this has any bearing on my problem. By default, the enlarged image is of a certain size and in the middle of the screen. I have 'tweaked' the js file to alter the size/location. But have encountered another problem: The 'loading' and 'closing' gifs are in the wrong place and much enlarged, as shown on the image below.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

I think that the js file is well known to the users of the Lightbox and may be able to give me some advice how to adjust the code, to position the 'closing' gif at the bottom, left of the expanded image.

any suggestion much appreciated
Karl,London

AttachmentSize
screen.jpg153.72 KB
Logus
Logus's picture
rank Regular

Regular


Posts: 49
Joined: 2008-01-08

Problem with strict XHTML

You can`t use lightbox or shadowbox with stict XHTML because position relative doesn`t works in IE, just change your header to use transitional HTML, after change your header return to original lightbox version because all css change.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MyPage</title>
</head>

"Todo habito hace nuestra mano mas habil y nuestro genio mas torpe"
Contact in my blog http://www.miguelmanchego.com

karlh
karlh's picture
rank newbie

newbie


Posts: 6
Joined: 2008-07-20
Location: london

many thanks for your reply.

many thanks for your reply. will have a look and reply later..

UPDATE:
I had a look and can tell you that the ORIGINAL Lightbox code, which opened exactly in the middle and is a square, worked absolutely fine in Strict XHMTL... It's when I began to tinker with the code, to change its size and location, that I ended up with the close gif problem..as seen on the attached pic.
Karl