Email conversation
From | Élisabeth Pauthier |
To | Me |
Subject | not able to create perfect pop up windows ! |
Date | 9 May 2006 18:37 |
Hello Mark.
My name is Babette and I am a photographer.
my website is [URL]
I landed by chance at your site, searching for how to center the content
of my pop window, the content appear on the left. I have been looking for
that answer for so long it drives
me insane and I cant stop thinking about which prevent me to send the link
to my website to anyone
as I think it is not perfect.
I have read your article about how to create perfect pop up windows but I
couldnt see
the answer but I was wondering if you had an idea?
Here is the script I made for the image on my menu page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Foo</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<a href="javascript:NewWindow=window.open('falter/images falter.html',
'falter.swf','width=750,height=600,left=0,top=0,toolbar=No,location=No,'+
'scrollbars=No,status=No,resizable=No,fullscreen=No');NewWindow.focus();
void(0);"></a>
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="[URL]/swflash.cab#version=7,0,0,0" width="750" height="600"
id="images falter" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="images falter.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="images falter.swf" quality="high" bgcolor="#ffffff" width="750"
height="600" name="images falter" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="[URL]" />
</object>
</body>
</html>
Do you think you can help me?
Also I wanted to say that your website is great and so Thanks a lot
for that it is fantastic. And also it is free...
If you could help me that will be great as I am starting to dream
about it.
Thanks a lot for your time.
Babette
From | Me |
To | Élisabeth Pauthier |
Subject | Re: not able to create perfect pop up windows ! |
Date | 11 May 2006 09:21 |
Babette,
> how to center the content of my pop window, the content appear on the
> left.
There are a few ways to do this. Since you are using transitional HTML, you
could go for the ugly old HTML <center> or <div align="center"> tags.
However, that approach is considered outdated.
Assuming the content is always the same width (750 it looks like), you can
put it inside a div, and apply these styles to it:
position: absolute; left: 50%; top: 0; margin-left: -375px;
If you use a doctype that triggers strict rendering in current browsers, you
could also use a div that shrinks to fit its contents (supposedly that means
using display:table but since IE does not understand that, you may have to
use a real table instead of the div), then apply this style to it; margin: 0
auto;
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
From | Élisabeth Pauthier |
To | Me |
Subject | Re: not able to create perfect pop up windows ! |
Date | 11 May 2006 12:58 |
Mark,
Thanks a lot for your help. It is so precious. I will try that tonight and I
will let you know how it went.
Thanks again so much,
Babette