Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2006
    Posts
    34
    Plugin Contributions
    0

    Default how do i add css hacks

    need some help here.. i have this script...

    <!--[if lt IE 7]>
    <link rel="stylesheet" type="text/css" href="/css/ie.css" /> <!-- for ie 6-->
    <![endif]-->
    <!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="/css/ie7.css" /><!-- for ie 7-->
    <![endif]-->

    i want to know where i can place this script so that my hacks in ie will function properly..

    Thanks.












    ZEN
    -
    CART NEWBIE here! :P
    -------------------------------------
    http://www.webpointph.com

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: how do i add css hacks

    You can find out for yourself by going to admin > Tools > Developers Toolkit and pasting a bit of code

    <link rel="stylesheet"

    in the lower left box. Select all files and search. It will show you which file(s) call for stylesheets already; that would be the place to add your code.

  3. #3
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: how do i add css hacks

    I think I see a flaw in your script,

    <!--[if lt IE 7]> <--(Shouldn't that be <!--[if lt IE 6]>
    <link rel="stylesheet" type="text/css" href="/css/ie.css" /> <!-- for ie 6-->
    <![endif]-->
    <!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="/css/ie7.css" /><!-- for ie 7-->
    <![endif]-->

    Just checking.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: how do i add css hacks

    Actually I think the /css/ie.css will apply if it is any version of IE, and then be replaced by /css/ie7.css if it is IE7.
    Thus, "lt (less than) IE7" is correct.

    (And it's only a comment, anyway! :)

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: how do i add css hacks

    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    Sep 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: how do i add css hacks

    Thanks for all your help.. I added my hacks in html_header.php and it works fine.












    ZEN
    -
    CART NEWBIE here! :P
    -------------------------------------
    http://www.webpointph.com

  7. #7
    Join Date
    Sep 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: how do i add css hacks

    Quote Originally Posted by kuroi View Post
    Thanks for this link.. i think this is better than what i did.












    ZEN
    -
    CART NEWBIE here! :P
    -------------------------------------
    http://www.webpointph.com

 

 

Similar Threads

  1. v150 How to add a css expandable menu?
    By Monkss in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 29 Feb 2012, 12:38 AM
  2. Swap Images via Mouseover or Click Add-on: how to add CSS Style?
    By vojager in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 28 Jan 2011, 06:27 PM
  3. How to add Internet Explorer (IE) CSS?
    By Develop&Promote in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Jul 2010, 10:16 AM
  4. IE8 Standard CSS Hacks?
    By cs_jono in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Apr 2010, 10:47 AM
  5. Hacks - not sure how to identify
    By SimplyBea in forum General Questions
    Replies: 0
    Last Post: 2 Sep 2006, 02:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg