Jump to content


Align text right (For "right to left" languages)


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

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 28 October 2004 - 01:19 PM

To align text to the right in MKPortal blocks and in forum posts make the following changes. This is needed for people who are using "right to left" languages (like Arabic, Hebrew, Farsi, and Urdu) for their portal and forums.


STYLESHEET:

/mkportal/templates/Forum_Skin/style.css

Quote

#tabnews {
border-right: 1px dashed;
border-left: 1px dashed;
border-top: 1px dashed;
border-bottom: 1px dashed;
margin:0px;
padding:0px;
text-align:right;}

#tdblock2 {
margin: 2px;
font-family: Verdana, Arial;
font-weight: bold;
font-size: 10px;
text-align:right;
}

#tdblock {
margin: 2px;
text-align:right;
}

#tdglobal {FONT-SIZE: 10px;
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; text-align:right;}
TEMPLATES:

/forums/sources/mods/mkportal/mod_mkportal_func.php said:

$ibforums->skin['template'] = "nn right'>n".$ibforums->skin['template'];

tpl_main.php - Ice Skin said:

function view_column_center($blocks) {
global $mklib;
return <<




right">

{$blocks}




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