Page 1 of 1

Make a Calendar cell to stay fixed whatever the text inside

Posted: Sun May 14, 2006 9:16 am
by sofajoe
i am trying to setup the Calendar module so that if someone enters a long word it doesn't stretch the calander e.g.
http://51degreesnorth.net/lasainteunion ... &m2month=6
- you'll see June's goes outside the design because of the text, while May is fine.

ideally i would like the Calendar cell to stay fixed at 75px and the words to be short... with dots so that it indicates there is more txt. i have tried changing the css & the template, but have had no luck as yet. Has anyone any ideas?

Cheers

Re: Make a Calendar cell to stay fixed whatever the text inside

Posted: Sun May 14, 2006 2:37 pm
by tsw
you can force extra text to be hidden with

Code: Select all

#big td p {
display:block;
width:70px;
overflow:hidden;
}
(5pixels reserved just in case ;)

but it will just cut the text when it overflows the container...

Re: Make a Calendar cell to stay fixed whatever the text inside

Posted: Sun May 14, 2006 6:35 pm
by sofajoe
Thank you tsw,

does cut the text, but it works  :)