RE: [PHP-DB] CSS versus Includes

2001-04-02 Thread richarda
 BDY.RTF

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


RE: [PHP-DB] CSS versus Includes

2001-04-02 Thread Rubanowicz, Lisa

Hi there,
you can also do it this way using Javascript
script
if (navigator.appName == "Netscape") {
StyleSheet = "netstyle.css"
} else {
StyleSheet = "iestyle.css"
}
/script

scriptdocument.write('link rel=stylesheet type="text/css" href="'
+StyleSheet + '"')/script

All the Best
Lisa

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 11:31 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] CSS versus Includes


One of the benefits to including a css (as opposed to LINK REL...) is
that you can pre-process the CSS file with PHP.

e.g.

my_css.phtml:

STYLE
!--
P ( color: ? echo $MyPHPColorSetting ? };
--
/STYLE

or even more useful:

if ($Browser='IE')
{
  include "ie.css";
}

else
{
  include "other.css";
}

Hope this helps.
  _  

~ Richard Allsebrook ~
Applications Developer and Webmaster
Easysoft Limited, Thorp Arch Grange, Thorp Arch, Wetherby, LS23 7BA, UK
http://www.easysoft.com http://www.easysoft.com  -
http://www.cinema.com http://www.cinema.com 
"A computer lets you make more mistakes faster than any invention in
human history - with the possible exceptions of handguns and tequila."

  _  

 



-Original Message-
From: mbraynard [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 31, 2001 12:45 AM
To: php-db
Cc: mbraynard
Subject: FW: [PHP-DB] CSS versus Includes


I have found that includes work just about as well. Any suggestions on
going
with one or the other?





RE: [PHP-DB] CSS versus Includes

2001-04-02 Thread richarda
 BDY.RTF

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


RE: [PHP-DB] CSS versus Includes

2001-04-01 Thread Matt Braynard

When I asked the question, what I meant was should I use the includes to
hold page style details or a CSS file. And someone who understood that this
was not an apples and oranges situation but one of approach answered that
Netscape was not fully supportive of CSS and suggested includes may be the
way to go.


 -Original Message-
From:   Patrick Dunford [mailto:[EMAIL PROTECTED]]
Sent:   Sunday, April 01, 2001 6:58 PM
To: [EMAIL PROTECTED]
Subject:RE: [PHP-DB] CSS versus Includes

On 31 Mar 2001 13:19:45 -0800 AD in php.db, Michael Geier said:

this post is about apples and oranges...

CSS (Cascading Style Sheets) have nothing to do with includes.
They only have to do with formatting elements on a web page.
They can be written inside the document, or can referenced
externally via a LINK tag.

Includes can be anything from a configuration file, a block of
text, or a header or footer statement that works across multiple
pages, so you don't have to duplicate code.

Including a CSS :)


--
===
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   Now to him who is able to do immeasurably more than all we ask
or imagine, according to his power that is at work within us,   to
him be glory in the church and in Christ Jesus throughout all
generations, for ever and ever! Amen.
-- Ephesians 3:20-21
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010331
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] CSS versus Includes

2001-04-01 Thread Boclair


"Matt Braynard" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
| When I asked the question, what I meant was should I use the
includes to
| hold page style details or a CSS file. And someone who understood
that this
| was not an apples and oranges situation but one of approach answered
that
| Netscape was not fully supportive of CSS and suggested includes may
be the
| way to go.

Whether you link to an external stylesheet, embed a style block or
declare the styles in-line is a matter for author management of the
CSS property declarations.  The use of includes or scripting  the
actual link, block or inline styling in the document does not matter a
wit.

Importantly, if the styling is included, the interpretation is still
done by the client browser.  Whether includes or in-document coding
are used, the restrictions and bugs and failure to parse, where
invalid markup or styling is involved, still apply.

What I do notice, however, with some Nav4x browsers, that escaping the
quotes on class names in printf() causes these browsers to sometimes
escape the whole class declaration.
eg.

printf('tr
td class=\'id\' align=\'right\'%s/td
td class=\'lname\'%s/td
td class=\'fname\'%s/td
td class=\'logon\'%s/td
td class=\'logoff\'%s/td
/tr
', $myrow['id'], $myrow['lname'],  $myrow['fname'],$myrow['logon'],
$myrow['logoff']);

The solution for some documents is to write as such
td class=id align=right%s/td

How this will affect xml documents I am not sure

Also with tables, if the data is being extracted from a database, as
above, and the data in a particular field row is null, the td cell
styling background will collapse with Nav4x browsers.  This might be
solved by a conditional statement inserting some content where the
database row/field content is null, or constructing the database table
with pseudo content, such as nbsp; as the default for fields likely
to have null content.

Sorry, but my experience is that oranges are oranges and apples and
apples are apples.  Nice thought!  but I do not think you can get out
of browser non-compliance by using PHP.

Tim Morris



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] CSS versus Includes

2001-03-31 Thread Michael Geier

this post is about apples and oranges...

CSS (Cascading Style Sheets) have nothing to do with includes.
They only have to do with formatting elements on a web page.
They can be written inside the document, or can referenced
externally via a LINK tag.

Includes can be anything from a configuration file, a block of
text, or a header or footer statement that works across multiple
pages, so you don't have to duplicate code.

If you meant something else, elaborate.

-Original Message-
From: Matt Braynard [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 5:45 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] CSS versus Includes


I have found that includes work just about as well. Any suggestions on going
with one or the other?



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]