css question

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
danwguy
Forum Contributor
Posts: 256
Joined: Wed Nov 17, 2010 1:09 pm
Location: San Diego, CA

css question

Post by danwguy »

probably stupid but let's say I have in my header
<link href="style2-test.css" rel="stylesheet" type="text/css">
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="ie.css" />
<![endif]-->

will IE use both stylesheets or only the ie.css?
is it different for different versions of IE? i.e. will IE9 use both styelsheets but IE8 will only use the ie.css? Sorry if this is completely retarded, but I have never used these before and for some reason IE9 is showing a border on the bottom of a div, yet in ie.css there is no border-bottom, but there is in style2-test.css.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: css question

Post by Christopher »

Google "<!--[if IE]>" for more info, but:

http://css-tricks.com/132-how-to-create ... tylesheet/
(#10850)
Post Reply