WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Off-Topic »
  • Css IF ie6 not working
  • Print
Pages: [1]   Go Down

Author Topic: Css IF ie6 not working  (Read 20234 times)

daydreamer

  • Guest
Css IF ie6 not working
« on: May 16, 2008, 09: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

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: Css IF ie6 not working
« Reply #1 on: May 16, 2008, 10: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.

Offline kweitzel

  • WebsiteBaker Org e.V.
  • **
  • Posts: 6983
  • Gender: Male
Re: Css IF ie6 not working
« Reply #2 on: May 16, 2008, 11:22:51 PM »
to be shure, that the CSS path is correct use:

Code: [Select]
<!--[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

Offline diodak

  • Posts: 85
Re: Css IF ie6 not working
« Reply #3 on: May 17, 2008, 08: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

  • Guest
Re: Css IF ie6 not working
« Reply #4 on: November 25, 2008, 01:48:58 PM »
Quote from: daydreamer on May 16, 2008, 09: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

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

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Off-Topic »
  • Css IF ie6 not working
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2