Re: dynamically switching layouts

2009-12-17 Thread Olle Hallin
I've used this technique in the past with good results, even for the notorious IE6. So I wouldn't be too pessimistic. Try @media print first before you decide to code a lot. There is a usability problem with @media print though. Users are so trained to look for printer-friendly versions of pages,

Re: dynamically switching layouts

2009-12-17 Thread Ilya Obshadko
I was reading exactly the same page and it doesn't look very optimistic :) On Thu, Dec 17, 2009 at 10:21 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Thu, 17 Dec 2009 19:03:38 -0200, Ilya Obshadko > escreveu: > > > Looks like there's a lot of browser compatibility issues

Re: dynamically switching layouts

2009-12-17 Thread Thiago H. de Paula Figueiredo
Em Thu, 17 Dec 2009 19:03:38 -0200, Ilya Obshadko escreveu: Looks like there's a lot of browser compatibility issues with this feature? I don't think so: http://www.codestyle.org/css/media/print-BrowserSummary.shtml -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 a

Re: dynamically switching layouts

2009-12-17 Thread Ilya Obshadko
Looks like there's a lot of browser compatibility issues with this feature? On Thu, Dec 17, 2009 at 8:20 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Thu, 17 Dec 2009 17:16:40 -0200, Ben Acker > escreveu: > > > I've used a printer friendly CSS styleheet in the past. You c

Re: dynamically switching layouts

2009-12-17 Thread Thiago H. de Paula Figueiredo
Em Thu, 17 Dec 2009 17:16:40 -0200, Ben Acker escreveu: I've used a printer friendly CSS styleheet in the past. You could have a link that switches to one of those and the templat html can remain the same. There's no need to switch CSS files: just add media="print" to the print CSS. It

Re: dynamically switching layouts

2009-12-17 Thread Thiago H. de Paula Figueiredo
Em Thu, 17 Dec 2009 17:13:15 -0200, Ilya Obshadko escreveu: In case I need to switch layouts dynamically (for example to create "printable version" of the same page) - is that possible to accomplish the task without creating a 'switch' construct between different blocks in the original la

Re: dynamically switching layouts

2009-12-17 Thread Ben Acker
I've used a printer friendly CSS styleheet in the past. You could have a link that switches to one of those and the templat html can remain the same. On Dec 17, 2009, at 11:13 AM, Ilya Obshadko wrote: In case I need to switch layouts dynamically (for example to create "printable version