Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Tapsa2 - elokuu 19, 2011, 05:31:11 AP

Otsikko: How do I set min height for newsfader
Kirjoitti: Tapsa2 - elokuu 19, 2011, 05:31:11 AP
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.
Otsikko: Re: How do I set min height for newsfader
Kirjoitti: IchBin™ - elokuu 19, 2011, 02:59:09 IP
In the index.css there should be a #smfFadeScroller section you can add the minimum height to.
Otsikko: Re: How do I set min height for newsfader
Kirjoitti: Tapsa2 - elokuu 19, 2011, 04:35:18 IP
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;
}

Otsikko: Re: How do I set min height for newsfader
Kirjoitti: schled - elokuu 19, 2011, 07:03:41 IP
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.
Otsikko: Re: How do I set min height for newsfader
Kirjoitti: Joker™ - elokuu 19, 2011, 07:12:14 IP
I'd suggest to use "overflow: hidden" and add some appropriate padding instead of using min-height, just personal views :P.