Re: site layout



Greetings, Jerry Stuckle.
In reply to Your message dated Thursday, April 3, 2008, 16:08:49,

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.

Yes, create a page "Hello, World!" and be happy with it!
Sorry but I need real pages, not dummy examples.

Then you don't need hacks like you are promoting.

Your words just showing a complete lacks of knowledge in specified situation.
Figure out Yourself, why...

Not at all. A lot of other webmasters I know also create very
complicated pages all the time which work in all browsers. But it
doesn't surprise me that you are incapable of doing it without your hacks.

It is good only if browser support that complicated CSS... Sorry Jerry, but
You're lost in Your ideal world. Sad thing is that, reality different from
Your expectations.


--
Sincerely Yours, AnrDaemon <anrdaemon@xxxxxxxxxxx>

.



Relevant Pages

  • 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: [PHP] Couple of beginner questions
    ... The custom tag will expand the path to wherever the images directory was ... It's a pain in the ass overriding a CSS rule that was ... wherever I can't simply redefine the html tag. ... infact ideally an html tag should never be seen in a php script ...
    (php.general)
  • Re: How can I prevent spaces between tags being rendered?
    ... This really is a pure CSS question as it relates to why I ... remove whitespace between a list of tags. ... What determines the arrangement of the HTML received by the ... browser is not the browser and not CSS. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Help with approach...
    ... PHP is, like the name represents, a Preprocessor. ... browser never knows about). ... DHTML lets you work with and manuipulate your CSS and HTML elements on the ... basically the JavaScript "interactive" end of CSS. ...
    (comp.lang.php)
  • Re: OT: Comparison of Unix systems and window managers
    ... I'm using tables for layout on my site, but CSS for all the ... formatting is a noble ideal, but using CSS to emulate a table seemed ... and doing "100% of HTML generated by code". ... you get often varies from browser to browser, ...
    (rec.crafts.metalworking)