Web Design Forum: How do i hack in a proper way for IE6? - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How do i hack in a proper way for IE6? Rate Topic: -----

#1 User is offline   kyme 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 97
  • Joined: 03-December 08
  • Reputation: 0
  • Experience:Beginner
  • Area of Expertise:Designer

  Posted 23 February 2009 - 04:56 AM

whats the proper syntax to hack ie6?
like for example, i have for ie7 and for FX but in ie6 it doesn't display normally.

Quote

div#bottomproducts{
position:relative;
margin:0 auto;
margin-top:420px; <<--- It works in IE7 & FFX

}


So how do i work out for ie6 that it would display normally same as ie7 and FX? :mellow:
0

#2 User is offline   tigerlabs 

  • Dev Ninja
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,462
  • Joined: 09-January 08
  • Reputation: 3
  • Gender:Male
  • Location:United States
  • Experience:Advanced
  • Area of Expertise:Coder

Posted 23 February 2009 - 05:49 AM

There are two ways, the first of which is better because you are linking to a separate stylesheet for IE6 only.

<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="ie6.css" />


also there is this hack, which is only for if you have only about 1 hack to do.. Even then it's kind of messy..

* html #divname {
color:red;
}


^^ I think that's correct, I need to sleep. :pp
0

#3 User is offline   kyme 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 97
  • Joined: 03-December 08
  • Reputation: 0
  • Experience:Beginner
  • Area of Expertise:Designer

Posted 23 February 2009 - 06:03 AM

hey thanks so much Meshach :) A.K.A The blue bird..
I already got and no more CSS errors! cool....
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users