Forums / Templates, Stylesheets, Page Layout / Need the Zen-ese to call stylesheet through Conditional Comment

Need the Zen-ese to call stylesheet through Conditional Comment

Locked

Views: 1,791

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
19 Dec 2006, 3:34 AM
#1
beejay avatar

beejay

New Zenner

Join Date:
Dec 2006
Location:
Delaware Valley PA
Posts:
3
Plugin Contributions:
0

Need the Zen-ese to call stylesheet through Conditional Comment

I'm used to having a separate "hack sheet" for all my IE6 and less styles, called through a conditional comment in the html head like so:

<!--[if lte IE 6]>
<link rel="stylesheet" href="ie6style.css" type="text/css" media="screen" />
<![endif]-->

Is there a Zen-ese way to "path" this in the head of my theme's html_header.php so that it is transportable with the theme and will always work??

Thanks.

19 Dec 2006, 3:46 AM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Need the Zen-ese to call stylesheet through Conditional Comment

Coding for Doctype to closing Head tag is found here:
includes/templates/*/common/html_header.php

Whatever you include should apply to all pages.

Mind you, you might have to do some funky coding or use an absolute path, in order to use the IE CSS file within your 'template' dir.

The learning is in the doing.

Potent Products

19 Dec 2006, 1:03 PM
#3
beejay avatar

beejay

New Zenner

Join Date:
Dec 2006
Location:
Delaware Valley PA
Posts:
3
Plugin Contributions:
0

Re: Need the Zen-ese to call stylesheet through Conditional Comment

Mind you, you might have to do some funky coding or use an absolute path, in order to use the IE CSS file within your 'template' dir.

Website Rob, thank you for responding. I guess I didn't phrase my question clearly enough since you repeated it. :)

Could someone please tell me what that "funky coding" might be??

19 Dec 2006, 5:10 PM
#5
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Need the Zen-ese to call stylesheet through Conditional Comment

Another related topic FYI.
Adding IE conditional stylesheet

.

A New Starter again

20 Dec 2006, 1:32 PM
#6
beejay avatar

beejay

New Zenner

Join Date:
Dec 2006
Location:
Delaware Valley PA
Posts:
3
Plugin Contributions:
0

Re: Need the Zen-ese to call stylesheet through Conditional Comment

YES! Thank you, that works.