Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 03:23:07 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Css IF ie6 not working  (Read 12998 times)
daydreamer

Offline Offline

Posts: 253


« on: May 16, 2008, 08:13:18 AM »

Hi I am using

<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="/templates/home/ie6.css" />
<![endif]-->

This does not seem to work when viewed in ie6 am I doing somthing wrong
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #1 on: May 16, 2008, 09:58:33 AM »

Hi,

you use this in the index.php of your template?
So I think the path to the css-file is not correct.

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #2 on: May 16, 2008, 10:22:51 PM »

to be shure, that the CSS path is correct use:

Code:
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR?>/ie6.css" />
<![endif]-->

Your CSS file needs to be with the indexfile of your template.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

diodak

Offline Offline

Posts: 85


« Reply #3 on: May 17, 2008, 07:28:20 AM »

I`m using <base href="<?php echo WB_URL; ?>" /> to not have problems with access to templates etc. Its always some useless code less in website.
Logged

Buchsbaum
memerson

Offline Offline

Posts: 1


« Reply #4 on: November 25, 2008, 01:48:58 PM »

Hi I am using

<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="/templates/home/ie6.css" />
<![endif]-->

This does not seem to work when viewed in ie6 am I doing somthing wrong

You have probably already sorted the problem since it was posted so long ago, but the reason it's not working is that you need to specify a CSS file for both IE 6 and IE 7 if you do it this way.

So, if you are only wanting to use a separate file for IE 6 only, you'd have to write:

<!--[if IE 6]>
<link media="all" rel="stylesheet" type="text/css" href="/templates/home/ie6.css" />
<![end if]-->
<!--[if IE 7]>
<link media="all" rel="stylesheet" type="text/css" href="/templates/home/youroriginalfile.css" />
<![end if]-->

Like that.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!