Problem Limiting news (solved)

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
abster

Problem Limiting news (solved)

Post by abster »

hi

First go at a template, im having problems stopping the news from breaking my box at the top shown here and wondered if any masters know a quick fix.

www.scottmcardle.co.uk/cms

code for news is:
{cms_module module="news"}

When the summary is too big it throws out formatting.

Can i limit the number of items that will appear, or fix the number of lines to show?

Also, if the tag is on news it seems to add new tags that arent in the news setup eg

Kind Regards
Scott
Last edited by abster on Sun Oct 07, 2007 10:45 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Problem Limiting news

Post by RonnyK »

Scott,

news has several parameters that can be called, Check the help

"Content -> News -> Help"
(optional) number="5" - Maximum number of items to display =- leaving empty will show all items.
Why do you use a TD around the calling, cant you use a container and style that.

Ronny
abster

Re: Problem Limiting news

Post by abster »

do you mean a

im not totally up on my html.

thanks
Scott
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Problem Limiting news

Post by RonnyK »

Scott,

Yes I meant a . Why don't you use a div, is the news only allowed to have a certain height, or do you want it shown inside a box.

I call it f.e. on www.terspille.nl on the homepage, where the news is shown inside a box, the height is variable!

Ronny
abster

Re: Problem Limiting news

Post by abster »

yes, i dont want the box to go above height="205"

thanks
Scott
abster

Re: Problem Limiting news

Post by abster »

ronny

thanks, ive taken your advice and although not entirely up on my css

ive done this

div.container {
  height: 205px;
  width: 244px;
  overflow: auto;
  font-size : 11px;
  font-family : Tahoma,Verdana,Arial;
  text-decoration: none;
  -moz-box-sizing: border-box;
}
/*
Spacer Div
*/
div.spacer{
clear: both !important;
}


HTML

{cms_module module="news" number="1"}


i limited the news to 1, but it works with the scroller if the summarys are too big, i'll probably set it back to 5 and tell the client to keep summarys short.

Thanks for pointing me in the right direction, long way to go to get it looking right.

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

Re: Problem Limiting news (solved)

Post by Dr.CSS »

Good practise is to use lower case in the HTML and CSS...

Or it won't be xhtml compliant...
Locked

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