TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 458
  • Total: 458

BBC Block Height

Started by Skhilled, September 03, 2011, 07:50:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Skhilled

Is there a way to limit a BBC block's height? I have some articles I'm adding to that type of block but instead of scroll bars appearing after adding about 5 of them it just gets longer and longer.

WillyP

You could do something with css,take a look at the block and get the id of the block and add something like height: 200px and overflow: scroll. Or something like that. Post a link and I'll be more specific if you want.

Skhilled

Hmmm, I thought so. I saw a post dated back to 2007, I think, that was sort of similar but I didn't think it would work for BBC blocks.

http:www/skhilled.com/docs

2nd block down on the left.

WillyP

Ok, try this in your css file:

#block25 .blockbody {
    overflow: scroll !important;
    height: 100px;
}

Skhilled

#4
Excellent! Thank you, kindly, sir! It worked. I figured there was a way to single out a block and add custom edits to it but didn't know how. Not only have you solved my problem but you've taught me how to do it for other blocks.  8)

EDIT: Only one problem. How do I get rid of the horizontal scroll bar?

No matter how wide I set the panels and blocks it still shows unlike the other blocks. I intentionally left it extra wide just so you can see.

http://www.skhilled.com/docs

IchBin

You may want to do max-height: 100px; with overflow: auto.

overflow: scroll is why the scrolls are showing regardless of content.

WillyP

True but if you do make sure you add some padding for IE or the bottom gets cut off, IIRC.

Skhilled

Quote from: IchBinâ,,¢ on September 07, 2011, 08:15:19 PM
You may want to do max-height: 100px; with overflow: auto.

overflow: scroll is why the scrolls are showing regardless of content.

Worked like a charm. Thanks. :)

Quote from: WillyP on September 07, 2011, 09:16:12 PM
True but if you do make sure you add some padding for IE or the bottom gets cut off, IIRC.

I checked it with IE, Chrome, and Opera and it looks ok without it but I'm on an older monitor. How does it look to you?

WillyP

Looks fine to me I must have been thinking of something else. Marked this solved.

Skhilled

Thanks for all of your help, WillyP. :)

This website is proudly hosted on Crocweb Cloud Website Hosting.