SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: AngelinaBelle on October 28, 2010, 08:57:28 AM

Title: "Clear: both;" before bottom blocks
Post by: AngelinaBelle on October 28, 2010, 08:57:28 AM
It is not always possible to control what has happened on a page just before the bottom blocks are used.
 
If float-left or float-right were used just before, this can cause undesireable formatting: http://simpleportal.net/index.php?topic=6818.msg38704#msg38704 (http://simpleportal.net/index.php?topic=6818.msg38704#msg38704)
 
Proposed change:
Code: (find) [Select]
function template_portal_below()
{
 global $context, $modSettings;
 echo '
    <br />';
Code: (replace) [Select]
function template_portal_below()
{
 global $context, $modSettings;
 echo '
    <br class="clear" />';
Title: Re: "Clear: both;" before bottom blocks
Post by: ccbtimewiz on October 28, 2010, 11:25:04 PM
Don't you mean after bottom blocks?
Title: Re: "Clear: both;" before bottom blocks
Post by: AngelinaBelle on October 29, 2010, 09:33:31 AM
Before bottom blocks.
After whatever-else-is-on-the-page before the bottom blocks begin.
 
In the case cited, the problem only occurred because the OP took the Info Center out of the template without doing a clear: both after the posting icons/mark read button.
 
That's why I suggested it as a precaution.
 
clear: both shouldn't be necessary AFTER bottom blocks, since the <td id="sp_center"> gets closed just after the bottom blocks and before <td id="sp_right"'> begins.
SimplePortal 2.3.8 © 2008-2024, SimplePortal