Re: Re: Php and CSS where to put it

From: Date: Mon, 12 Jan 2009 21:56:00 +0000
Subject: Re: Re: Php and CSS where to put it
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-286167@lists.php.net to get a copy of this message
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

« previous php.general (#286167) next »