Jump to content


[IP.Board] Prevent horizontal skin stretching


1 reply to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 17 July 2008 - 03:08 PM

I couldn't get the IP.Board "No. characters to word wrap on?" setting to work for me with Firefox 2. Some posts on this forum were still stretching my fixed width template. It looked really bad. However this does not seem to be an issue with IE7, Opera, or Safari on Windows.

SMF creates a horizontal scrollbar for a post that is too wide. If you want IP.Board to treat wide posts like SMF does try this. These instructions are for the IP.Pro skin...


FIND in the skin's stylesheet:
.postcolor{ 
	font-size: 13px; 
	line-height: 160%;
}


ADD BELOW:
div.postcolor{
	overflow: auto
}

Or you can simply add the code to the bottom of the stylesheet if you prefer.

I posted an example of the effect below using an actual post from this forum that was causing issues...


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

#2 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 17 July 2008 - 03:09 PM

This post should have a horizontal scrollbar in Firefox 2 to prevent the template from stretching...

View Postneoxrg, on Jul 6 2006, 02:17 PM, said:

hey how are you i tried the hack out but i'm getting a parse error can't seem to find out wha't it's about can you take a look it's the strangest thing cauz there is no line 242

this is the error that i get..

Parse error: parse error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /storage/mijndomein/users/017840/public/sites/www.chill-zone.nl/mkportal/modules/chat/tpl_chat.php on line 242
and this is line 238 to 241

EOF;
}
}
?>

thnks



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




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users