Re: site layout



AnrDaemon wrote:
Greetings, Jerry Stuckle.
In reply to Your message dated Friday, March 14, 2008, 05:24:43,

is it possible to control css with php

Sure. CSS can be generated with PHP, just like HTML can.

The main question being - why?

In example, You have 3 browsers (Regular desktop, Mobile client (GPRS-WAP and
the like), specialized in-application browser) what should render the same
page without loosing of readability. Yes, You can send different CSS for every
single one, but maintaining 3 different files isn't easy, if they are so
close and You need to make changes in them all if something goes to change.
Much simpler to have PHP script that acting to serve CSS template and adapt it
to every browser. Even then, with server-side caching it's very fast process,
and with proper headers it will be cached on the client side too.



And even simpler is to have valid CSS which works in all browsers. Then you don't need hacks like you are promoting.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================

.



Relevant Pages

  • Re: IE7 horizontal scrolling problem
    ... IE7 and other 'good' browsers should do it. ... bugs in specific browsers, will make debugging a lot harder, longer, ... Best is to always simplify, clarify, reduce CSS ... Use and rely on browser default values. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Why why why? (Was: Re: Vertical alignment of text within a DIV)
    ... Sadly CSS2 does not offer a good method for creating layouts ... anything else a browser adds to the base web experience. ... successfully been achieved with the likes of Java and Perl. ... the same would not of been a far better solution for HTML, XML, CSS, ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Free software for Macs to design webpages?
    ... template web generators and CSS support programs at ... And there are a lot of template out ... When you do learn HTML and CSS you can always tweak things. ... There just seem too many browser and other quirks to take into ...
    (comp.sys.mac.system)
  • Re: CSS?
    ... FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... Unless using inline/embedded CSS, the browser must reference another file ... Rebuild it with tables and measure the load time. ...
    (microsoft.public.frontpage.client)
  • CSS visited pages disclosure
    ... web browsers with CSS support ... Schneider outline a method for pages on an attacking server to ... A method is also suggested to use the browser cache, ... CSS has a feature that can be abused to exactly the same ends. ...
    (Bugtraq)