Forum Moderators: open
<style type="text/css">
#main { width: 95%;, margin: auto; }
</style>
or
<link rel="stylesheet" type="text/css" href="mystyle.css">
If it's written out with document.write, you can do the same:
document.write('<link rel="stylesheet" type="text/css" href="mystyle.css">');
If you mean center the pop up in the viewport, you will probably have to get the viewport's parameters (width, height, etc.) first with Javascript, then do some math to position it in the center of the viewport. No code immediately handy, but a search for Javascript Window Object should turn up some results. Note that Moz browsers and IE have different ways of getting these.
<!-- TWO STEPS TO INSTALL POPUP WINDOW:
1. Paste the first into the HEAD of your HTML document
2. Use the code to open the popup page on your site -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by: Nic Wolfe -->
<!-- This script and many more are available free online at -->
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=600');");
}
// End -->
</script>
<!-- STEP TWO: Use the following link to open the new window -->
<A HREF="javascript:popUp('http://www.mysite.com')">Open the Popup Window</A>
<!-- Script Size: 0.73 KB -->
Do it possible to I make what I need?
Thank you very much again.
Mladen