Seite 1 von 1

wie bekomme ich bei diesem code die html-seite zentriert?

Verfasst: 31.03.2004 12:24
von Tecwar
kann mir jemand den code ändern, so das html-seite zentriet dagestehlt wird ?

Code: Alles auswählen

<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
define('SHOW_ONLINE', true);
$page_title = "index";
include($phpbb_root_path . 'includes/page_header.'.$phpEx);



echo '<iframe height="300" width="750" src="http://www.xxxx.de/index.htm" name="index" id="index" frameborder="0"></iframe><br><br>';


include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>

Verfasst: 31.03.2004 13:09
von Henne
Was ist denn, wenn du noch nen <center> drumpackst?

Verfasst: 31.03.2004 13:10
von REincarnation
Müsste so funktionieren.

Code: Alles auswählen

<?php 
define('IN_PHPBB', true); 
$phpbb_root_path = './'; 
include($phpbb_root_path . 'extension.inc'); 
include($phpbb_root_path . 'common.'.$phpEx); 
$userdata = session_pagestart($user_ip, PAGE_INDEX); 
init_userprefs($userdata); 
define('SHOW_ONLINE', true); 
$page_title = "index"; 
include($phpbb_root_path . 'includes/page_header.'.$phpEx); 



echo '<div align="center"><iframe height="300" width="750" src="http://www.xxxx.de/index.htm" name="index" id="index" frameborder="0"></iframe></div><br><br>'; 


include($phpbb_root_path . 'includes/page_tail.'.$phpEx); 
?>