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

Re: Upper margin

Edit the .tpl-files in /include/template/ or edit the css-files in /style/

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3

Re: Upper margin

The easiest way is to add topmargin="0" marginheight="0" to the <body> tag of your page.

Re: Upper margin

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?

Re: Upper margin

The topmargin and marginheight attributes are deprecated. Try this:

<body style="margin: 0; padding: 0">

"Programming is like sex: one mistake and you have to support it for the rest of your life."

6

Re: Upper margin

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>

Re: Upper margin

Thanks, for your replies but it still did not worked sad

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

8

Re: Upper margin

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.

Re: Upper margin

Thanks ps21, now it works smile