Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > position: fixed in IE - how?

Reply
Thread Tools

position: fixed in IE - how?

 
 
david graham
Guest
Posts: n/a
 
      09-12-2003
http://www.turnip.clara.co.uk/jvaughan_cv_sysadmin.html

Hi
I think I should have posted this in c.i.w.a.s but this group are as strong
(if not stronger) than the more specialist group. Anyway, we all know that
IE (any version, at least for PC, don't know about IE5 Mac?) does not
implement position: fixed on anything other than background-attachment:
fixed, so how does this guys CV get round that problem. His CV works really
well in all browsers I have tested it in (NN7, Opera7.1, IE5). All I see in
the source is:

div.navbar {
position: fixed;
width: 25%;
height: 100%;
left: 0px;
top: 0px;
padding-left: 0px;

font-family: "Times New Roman", Times, Georgia, serif;

background: #f5f5f5;
}

no sign of any hack there!

BTW - I think it is worth studying how he has used CSS - I think it is a
high standard, is that a correct assessment?
I like the way he has seperated out CSS for compliant browsers from that
intended for older browsers.

thanks
David


 
Reply With Quote
 
 
 
 
John W.
Guest
Posts: n/a
 
      09-12-2003
"david graham" <>:

>http://www.turnip.clara.co.uk/jvaughan_cv_sysadmin.html
>
>Hi
>I think I should have posted this in c.i.w.a.s but this group are as strong
>(if not stronger) than the more specialist group. Anyway, we all know that
>IE (any version, at least for PC, don't know about IE5 Mac?) does not
>implement position: fixed on anything other than background-attachment:
>fixed, so how does this guys CV get round that problem. His CV works really
>well in all browsers I have tested it in (NN7, Opera7.1, IE5). All I see in
>the source is:
>

Try again, there is a whole lot more css than you show here.

[ snip little bit source ]



John OO
--

<http://webcel.nl/>
<http://www.webcel.nl/bayshop/shop/bayshop.html>

"Time is what prevents everything from happening at once"
- John Archibald Wheeler -
 
Reply With Quote
 
 
 
 
david graham
Guest
Posts: n/a
 
      09-12-2003

"John W." <> wrote in message
news:...
> "david graham" <>:
>
> >http://www.turnip.clara.co.uk/jvaughan_cv_sysadmin.html
> >

> Try again, there is a whole lot more css than you show here.


OK - John, I have just read a reply - I think it was from you or Toby (lost
track of it now so I can't check) but I have copied the info for future
reference. This reply makes it clear that the approach adopted by the owner
of the CV is described in full at:

http://devnull.tagsoup.com/fixed/

The CSS that does the trick for IE5.x is enclosed in conditional comments,
the bit for IE5 is below

<!-- Stylesheet hacks to make page display correctly under IE5 -->
<!--[if IE 5]>
<style type="text/css">
/* Amends and adds rules needed by IE5.x to standards-compliant CSS */

@media screen {
body {
overflow: hidden;
z-index: 1;
}

div.navbar {
position: absolute;
z-index: 6;
overflow: hidden;
}

.spacer {
position: absolute;
margin-bottom: 0px;
width: 25%;
left: 0px;
bottom: 0px;
background: #F5F5F5;
height: 100%;
z-index: 5;
}

div.main {
margin-left: 0px;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
padding-left: 30%;
z-index: 4;
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
}

} /* End of @media screen */

</style>

<link href="http://www.unix-consultancy.com/css/cv/ie5hacks.css"
rel="stylesheet" type="text/css">
<![endif]-->

The link for ie5hacks.css goes to a stylesheet which is empty at the
moment - perhaps he is thinking of moving all the embedded css to an
external stylesheet at a future date

many thanks

David




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access to AP with fixed IP Kim Schroeder Wireless Networking 8 10-28-2005 11:32 AM
Free Fixed-Width/Fixed-Pitch fonts? johnp HTML 4 05-23-2005 06:14 AM
fixed ip address at home, auto elsewhere =?Utf-8?B?UmFkZE1hbm4=?= Wireless Networking 1 10-16-2004 02:33 AM
Problem with site in Firefox - how can this be fixed? John Coxon Firefox 4 08-14-2004 07:40 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57