Re: site layout



AnrDaemon wrote:
Greetings, Jerry Stuckle.
In reply to Your message dated Monday, April 7, 2008, 17:01:35,

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.

Yea, anyone can hack together some CSS and make it work half-way. But it takes a COMPETENT designer to create CSS which produces the desired results without browser-specific hacks.

So again you show your level of competence.

Jerry, where You got Your "hacks"? You start talking about some "hacks" and
I've tried to get You back into conversation but You're driving Your own way.
I think, with Your inability to read this discussion as much counterproductive
as it is offtopic here.



Not at all. You're the one who says you need to hack your CSS with browser sniffing code to make it work. A competent designer can do it without any hacks.

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

.



Relevant Pages

  • 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: 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: [PHP] CSS / PHP / Javascript
    ... do NOT then generate different CSS for each browser. ... [PHP] CSS / PHP / Javascript ... sheets for different visitors. ...
    (php.general)
  • 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)