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.
> 
> Cheers,
> 
> tedd
> 
> 
> -- 
> -------
> http://sperling.com  http://ancientstones.com  http://earthstones.com
> 

Here's something for fixing IE with hacks:

http://www.ashleysheridan.co.uk/coding_html_comments.php

basically it lets you add in extra IE-only stylesheets using comment
code only recognised by IE, and you can use !important to stress your IE
styles. Best thing though is it validates through the W3C because it is
just an HTML comment.


Ash
www.ashleysheridan.co.uk

[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