FIX or LIMIT height of NEWS sidebar?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
saucybeige

FIX or LIMIT height of NEWS sidebar?

Post by saucybeige »

Hi

I'm using CMS 1.0.2.

I am trying to fix or limit the length of the news bar on my home page. The more news I add, the longer the bar gets, with lots of empty space elsewhere!

Things I tried:
1. giving a height value to the news box "div#sidebar" in my general stylesheet, but then the news just overflows.
2. giving a height value to the "div#news" in the News stylesheet, but this has no effect on the box.

I could try limiting the number of news summaries that displays in the bar, but I would prefer something more exact.

Could I use the "overflow" property somewhere, or else somehow assign a fixed height to the news bar?

Thank you!!

Jane
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: FIX or LIMIT height of NEWS sidebar?

Post by Dr.CSS »

Try giving it a fixed height with overflow:hidden...
saucybeige

Re: FIX or LIMIT height of NEWS sidebar?

Post by saucybeige »

Hi Mark

Thanks for your suggestion.

Good idea but not ideal - it hides the overflow but this means that half a random sentence gets cut off and it looks a bit shoddy, know what i mean?

Are there any other workarounds for this? Or does everyone who uses CMS Made Simple have incredily long newsbars?? They can't surely!!

Cheers
Jane
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: FIX or LIMIT height of NEWS sidebar?

Post by Dr.CSS »

Well if you limit the number then you get the latest news and you can have a page with all the news, in summary, on it and click to read more, maybe say so in the news bar... or make the summaries real short... ;)
Locked

Return to “Layout and Design (CSS & HTML)”