Page 1 of 1

BBCODE Plugin Formatting Fix

Posted: Thu Aug 30, 2007 6:29 pm
by TKS
Inside plugins/serendipity_event_bbcode/serendipity_event_bbcode.php

Code: Select all

.bb-code, .bb-php {
    font-family: courier, "courier new";
    background-color: #DDDDDD;
    padding: 10px;
}
should be:

Code: Select all

.bb-code, .bb-php {
    font-family: courier, "courier new";
    background-color: #DDDDDD;
    padding: 10px;
    overflow: auto;
}
Overflow: auto; will allow the bbcode to fix itself on narrow blog when long lines of code text are posted (for example, Carl02)

Re: BBCODE Plugin Formatting Fix

Posted: Thu Aug 30, 2007 6:49 pm
by garvinhicking
Hi!

Hm, this IMHO depends on the specific template. Some might not work well with the auto overflow? IMHO this should be put into a templates style.css rather than the default setting of the plugin?

Then again, I'm not that good with overflow, so I don't know if my assumption is true that it could cause trouble on blogs using other templates.

Regards,
Garvin

Posted: Fri Aug 31, 2007 12:45 am
by TKS
if it's set to overflow: auto; it should only add in when needed (ie, clipped content to large for the bbcode), otherwise it will not effect the bbcode.

http://www.w3schools.com/css/pr_pos_overflow.asp