navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

IE Conditionals.....

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> IE Conditionals.....
Page: [1]
 
Giomanach

 

Posts: 6129
Joined: 11/19/2003
From: England
Status: offline

 
IE Conditionals..... - 8/9/2004 16:57:10   
Hey Guys

Web Page: http://www.giomanach.com/client/steph

Problem:

Using the coniditional statements as posted by Deb...and Ie picks it up as comments? why? 01.css is designed for FF and NN(7.1). Have created another one.....just removed a couple of bits ( so I know it works) till I can get this to work...and it won't work...what am I doing wrong people?

Cheers

Dan

_____________________________



c1sissy

 

Posts: 5086
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: IE Conditionals..... - 8/9/2004 17:32:55   
Not sure what you are doign wrong with this, but it works for me, and it works for Peter as well as several others.

Try validating your css and xhtml/html

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to Giomanach)
Donkey

 

Posts: 3919
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: offline

 
RE: IE Conditionals..... - 8/9/2004 19:57:52   
Dan,
I use the conditional statement without the "[if IE]" bit, you don't really need it, and I'm not sure if it makes any difference but I always put the "href" part first. So you could try the links with the following slight changes.
<link href="01.css" rel="stylesheet" type="text/css"/>
<!-->
<link href="all-ie.css" rel="stylesheet" type="text/css"/>
<!-->


Another point is that the only things you need in the "commented out" link are the "overrides" that you want IE to pick up, you don't have to duplicate all the info that works with IE as well as the other compliant browsers.

The IE browser reads your 01.css style sheet first then the commented out sheet all-ie.css, so it will implement all the instructions in 01.css then change any rules that are different in all-ie.css. From looking at your two stylesheets I get the impression that you are trying to have one sheet for IE and one for the rest. That doesn't work because the cascade comes into effect as described above. For instance in your all-ie sheet you have duplicated "#page{" with the border values left off. This has no effect because it doesn't change the values already established in 01.css. You probably need to have border:none; in there.

I notice that you have "#head{position:fixed;}" in your ie sheet, IE doesn't recognise "fixed" so you probably need to use "absolute".

So I would say your new slimmed down all-ie.css sheet should look something like this;
body{margin: 0;}

#page{border:none;}

#head{
position:absolute;
padding: 0;
float: none;
}

#nav{position:absolute;}


I hope that is useful, it works for me.

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to c1sissy)
Giomanach

 

Posts: 6129
Joined: 11/19/2003
From: England
Status: offline

 
RE: IE Conditionals..... - 8/10/2004 0:21:42   
Deb - All Valid CSS and XHTML w3.org told me so:)

Peter - Will have a go at that later. You can use position:fixed; on IE, you just have to fool IE into believing that it's absolute positioning, and it can be done. I just need to wake up first:)

Cheers

Dan

_____________________________




(in reply to Donkey)
c1sissy

 

Posts: 5086
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: IE Conditionals..... - 8/10/2004 1:18:07   
http://www.positioniseverything.net/index.php
Dan for positioning, visit the above link and read what is on this site. ITs an excellent one to study.

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to Giomanach)
Donkey

 

Posts: 3919
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: offline

 
RE: IE Conditionals..... - 8/10/2004 3:01:02   
quote:

You can use position:fixed; on IE,
According to the article I read you can simulate fixed positioning by moving the scroll bars on to the document body using;
html
  {
  overflow: hidden;
  }
body
  {
  height: 100%;
  overflow: auto;
  }

But this fools IE into interpreting position absolute as fixed, it won't work with position:fixed; Also I believe it can be a bit iffy when the page gets complicated with scroll bars being covered by other content.

I've just done a search and found this link Faking Position Fixed in IE

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to c1sissy)
Giomanach

 

Posts: 6129
Joined: 11/19/2003
From: England
Status: offline

 
RE: IE Conditionals..... - 8/10/2004 3:37:18   
Cheers Guys

I'm not bothered if I can't get the same scrolling effect in IE that I can in FF and NN...as long as it looks good in all browsers...I'm happy, as is client. Just want to get this sorted before I put the template to the client...and then you lot

Dan

_____________________________




(in reply to Donkey)
Giomanach

 

Posts: 6129
Joined: 11/19/2003
From: England
Status: offline

 
RE: IE Conditionals..... - 8/10/2004 16:02:37   
Here's one for ya.....

Conditionals work alright......but when I make the chanages so that it's position: absolute; not fixed....that div layer disappears!...why?

Dan

<edit>

No need...just means I can't have the scroll effect I wanted...oh well...damn IE!!!!!!!

</edit>

_____________________________




(in reply to Giomanach)
Donkey

 

Posts: 3919
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: offline

 
RE: IE Conditionals..... - 8/10/2004 18:36:00   
You are right Dan it's not a satisfactory solution. The main problem I found is that you end up without the ability to have anything absolutely positioned, because it all gets fixed. I came to the conclusion that my navigation and footers will be fixed in all the compliant browsers but in IE they will scroll like everything else. It helps if you use the IE "overides" style sheet - you just have to accept the difference and effectively design 2 separately positioned sites.

IE users will be forever handicapped untill they see the light and upgrade to moz or opera or the evil empire does the decent thing with the next version of IE.

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to Giomanach)
Giomanach

 

Posts: 6129
Joined: 11/19/2003
From: England
Status: offline

 
RE: IE Conditionals..... - 8/11/2004 0:37:21   
quote:

or the evil empire does the decent thing with the next version of IE.

You have got to be kidding me? lol

It's a real shame...'cos I managed to get a nice "frames" effect with the content scorlling under the nav and header...but..and got the footer where I wanted it...but nope...IE won't let me have it. So...made header and nav absolute positions...but a table in the body with content and footer info in...jobs done and it works in IE as well....

_____________________________




(in reply to Donkey)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> IE Conditionals.....
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts