RSS

Archive | August, 2011

Printing elements in a table downwards, not left to right

Thursday, August 25, 2011

0 Comments

I was making a dynamic phone list to be printed around the office, and came across the small problem that I wanted it to print the names in 3 columns with the names listing downwards alphabetically, or as such: NAME NAME NAME Andrew Ben James Anthony Chris Kevin So I had extrapolated the data from our database into an array. So to print it, I’m printing [...]

Variable height to expanding message box

Tuesday, August 16, 2011

0 Comments

Recently, I had the problem of creating a message inbox ajax-style, but have to add an expand/retract option if the message was too long to fit in the standard message.  Secondly, I did’nt want a shorter message in a giant box (ie a 1 line message, in a box that could accomodate 3 lines, leaving [...]