Re: Re: Php and CSS where to put it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2009-01-12 at 16:27 -0500, tedd wrote:
> At 7:38 PM +0100 1/12/09, Michelle Konzack wrote:
> >Hello Terion,
> >
> >Am 2009-01-12 10:42:10, schrieb Terion Miller:
> >  > I have this code and the css seems to not work in IE at all, do I need to
> >  > put it somewhere different on the page maybe?
> >
> >The CSS must be in the HTML Header like
> >
> ><html>
> ><head>
> >   <title>CSS Example</title>
> >   <link rel="stylesheet" type="text/css" href="inc/styles.css">
> >   <style type="text/css">
> >     #body { background-color: magenta; }
> >   </style>
> ></head>
> ><body>
> >
> >...rest of the page
> 
> Today must be my "Arrrgggg" day.
> 
> Don't embed css in document -- just put what you want in your css file.
> 
> If IE has a problem with it, then deal with IE within the css file. 
> There are css hacks if you can't find a way around the problem.
> 
> But embedding css style rules is a real "no-no" in my book -- there's 
> no reason to do it.

On my dev sites I embed the CSS, on production it gets exported to an
external version-named file as part of the build process.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux