It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming CSS Forum

switch style sheets for IE6

switch style sheets for IE6

Postby dazz_club on Sun Jun 03, 2007 2:47 pm

hi there just a quick question,

im doing a site where ive got a style sheet for firefox and ie7 and a sepearate one for ie 6. and the code i used for forthis switch to happen looks like this...

Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Hutton &amp; Co. (Ship Chandlers) Ltd.</title>
    <link href="css/stylesheet.css" rel="stylesheet" type="text/css" />
    <!--[if lt IE 7]>
   <link rel="stylesheet" type="text/css" href="css/ie6.css" />
<![endif]-->


now for the quick question. If the ie6 style sheet i created was empty ( contained no stlying what so ever. Will the ie6 browser display my site with no style at all?

because when i remove all the content from the ie6 syle sheet it still displays it has if its reading the style sheet. Is it using the other style sheet instead?

cheers
User avatar
dazz_club
250+ Club
 
Posts: 313
Joined: Fri Jul 15, 2005 7:35 am
Location: Chester and Hull

Postby knifeinback on Fri Jul 27, 2007 11:09 am

It's set to read the style from the external stylesheet.
So then if you have it as empty, it should be reading nothing, therefore having 'no style'. But there are always browser defaults.

I would try defining all the tags, but not having any style for them.

eg
Code: Select all
.h1{}


Or something like that. I'm not sure though.
User avatar
knifeinback
100+ Club
 
Posts: 136
Joined: Fri Jul 27, 2007 10:41 am
Location: 4170: Brisbane


Who is online

Users browsing this forum: No registered users and 1 guest