Topic: Upper margin
Hello, how can I change the appearance of my forum: http://www.bulgaricus.com/forum/ so that the upper margin would be "0" like on: http://www.bulgaricus.com/index.php ?
Regards,
Edward
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → Upper margin
Hello, how can I change the appearance of my forum: http://www.bulgaricus.com/forum/ so that the upper margin would be "0" like on: http://www.bulgaricus.com/index.php ?
Regards,
Edward
Edit the .tpl-files in /include/template/ or edit the css-files in /style/
The easiest way is to add topmargin="0" marginheight="0" to the <body> tag of your page.
Thanks, I have done what you recommended, but there is still an upper margin remaining (smaller than before). Do you have an idea how to get rid of it?
The topmargin and marginheight attributes are deprecated. Try this:
<body style="margin: 0; padding: 0">
Set cellpadding and cellspacing to 0 (zero) in the first <table> tag so it reads like this.
<table border=0 cellpadding=0 cellspacing=0 width=760 align=center>
Thanks, for your replies but it still did not worked
Now my main.tpl file looks like that:
<BODY style="margin: 0; padding: 0" topmargin="0" marginheight="0">{pun_head} <BODY{PUN_BODY}>
<TABLE border=0 width=760 align=center>
<TBODY>
<TR>
<TD>
<?php include '../menu_main.htm'; ?>
<!-- (C)2000-2002 GeM S.A. ver 11.0 Forum -->
<script language="javascript1.2">
<!--
document.writeln('<scr'+'ipt language="javascript1.2" src="http://std1.hit.gemius.pl/_'+(new Date()).getTime()+'/script.js?id=.FDgHX.0WvOTXaS6IrkCxdT47O9N6EPbbU.IqX3JVEz.D7&l=11" defer="defer"></scr'+'ipt>');
//-->
</script>
<TABLE class=punmain cellSpacing=1 cellPadding=4 align=center>
<TBODY>
<TR>
<TD class=puncon1>{pun_navlinks}<BR><BR>{pun_status}
</TD></TR></TBODY></TABLE>{pun_main}
<TABLE class=punmain cellSpacing=1 cellPadding=4>
<TBODY>
<TR>
<TD class=puncon2>
<TABLE class=punplain cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD class=puntop></TD>
<TD class=puntopright>Powered by <A href="http://punbb.org/" target=_blank>PunBB</A><BR>Version: 1.0.1<BR>© Copyright 2002, 2003 Rickard Andersson
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
</TD></TR></TBODY></TABLE>
<?php include '../stopka_for.php'; ?>
</BODY>
May be there is some mistake I have made in the file?
Thanks,
Edward
See my previous post. You have not set cellpadding=0 cellspacing=0 in the first <table> tag ie. the second tag from the top in the code you posted.
Thanks ps21, now it works
PunBB Forums → PunBB 1.2 troubleshooting → Upper margin
Powered by PunBB, supported by Informer Technologies, Inc.