Advertisement:

How do I set min height for newsfader

Aloittaja Tapsa2, elokuu 19, 2011, 05:31:11 AP

« edellinen - seuraava »

Tapsa2

In 1.1.x it was easy to change in BoardIndex.template.php but I can't find a similar line in 2.0

I want the newsfader jumping to stop when it changes between different news sizes.
Suomi - Finland

IchBin™

In the index.css there should be a #smfFadeScroller section you can add the minimum height to.
IchBin™        TinyPortal

Tapsa2

Thanks IchBin.
I found the line where to change the min height.
#smfFadeScroller
{
    text-align: center;
    padding: 1em;
    overflow: auto;
    margin: 0 0 1em 0;
    min-height: 40px;
    color: #575757; /* shouldn't be shorthand style due to a JS bug in IE! */
    border: #141414 1px solid;
    border-top: none;
    border-radius: 0 0 4px 4px;
    border-top: none;
}

Suomi - Finland

schled

I think you should also be able to just have a minimum number of lines for each news item. This could save editing the code.

Joker™

I'd suggest to use "overflow: hidden" and add some appropriate padding instead of using min-height, just personal views :P.

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Advertisement: