Jump to content


Left Align Blocks


  • You cannot reply to this topic
No replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 07 September 2004 - 01:10 PM

How to change center alignment in blocks to left:

This change is necessary to left align block content in IE.


If you are using forum skins for MKPortal...

FIND:

/mkportal/templates/Forum_Skin/tpl_main.php said:

function view_block($title, $content) {
global $mklib;

$box_content = $this->box($title, $content);

return <<                            
                                center">
{$box_content}
                               
                           
                           
                                 
                           
                               
EOF;
}


REPLACE WITH:

/mkportal/templates/Forum_Skin/tpl_main.php said:

function view_block($title, $content) {
global $mklib;

$box_content = $this->box($title, $content);

return <<                            
                                left">
{$box_content}
                               
                           
                           
                                 
                           
                               
EOF;
}



Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users