I recommend switching to a css framework if layout is your problem,
such as bluepages or 960 grid. There are lots out there, and lot of
reviews too to help you choose. Personally I chose bluepages, and it
works well with prototype/scriptalicious.

IMO the best way to switch is to load the framework css 1st so your
own css overrides it. Then you can switch-off your css styles for
stuff like positioning, width, height etc. but keep your colours,
fonts etc.  Then change your html, adding the classes from the
framework to get your layout lined up nicely on all browsers. Assuming
you already have div countainers in place, it's not too difficult.

HTH

On Feb 14, 4:25 am, RichardAtHome <[email protected]> wrote:
> Conditional comments are the way forward. The user agent can be
> spoofed.
>
> On Feb 13, 11:37 am, Marcelo Andrade <[email protected]> wrote:
>
> > On Fri, Feb 13, 2009 at 7:17 AM, mona <[email protected]> wrote:
>
> > > hi viewers
>
> > > i have one serious problem i have to set the page layout in such a way
> > > that my website should perfectly viewed in internet explorer . It is
> > > working fine in firefox but in IE it is not so can anybody tell me how
> > > to call two different css for two different browsers or any other
> > > solution for that so that is should be correctly displayed in internet
> > > explorer
>
> > With PHP, you can check the browser using the user agent in the
> > $_SERVER superglobal variable[1].
>
> > In another way, you can use css hacks for IE ou even the conditional
> > comments[2].
>
> > [1]http://php.about.com/od/learnphp/p/http_user_agent.htm
> > [2]http://haslayout.net/condcom
>
> > Best regards.
>
> > --
> > MARCELO DE F. ANDRADE (aka "eleKtron")
> > Belem, PA, Amazonia, Brazil
> > Linux User #221105
>
> > [...@parĂ¡ ~]# linkshttp://pa.slackwarebrasil.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to