473,574 Members | 2,172 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to fix elements in IE

Hi there,

please check out this page:

http://nadine-timo.de/hsm/index.html

In most browsers the menu and the top line are _fixed_. Who knows how to
tell Internet Explorer to do so?

Thanks in advance
Marco
--
Please change the subject to "NEWSMAIL" in your emails.
Jul 20 '05 #1
30 2926
On Mon, 24 May 2004 01:05:52 +0200, M. Ney wrote:
http://nadine-timo.de/hsm/index.html

In most browsers the menu and the top line are _fixed_. Who knows how to
tell Internet Explorer to do so?


I think the 'problem' is this line..
#kopfzeile {
position:fixed;

IE does not recognise 'position: fixed', AFAIU.
(and the problem is IE, not the style)

BTW ..be a nice chap and define an alt
tag for the image on line 66, eh?
(Even if simply alt="")

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 20 '05 #2
Andrew Thompson <Se********@www .invalid> wrote:
IE does not recognise 'position: fixed', AFAIU.
(and the problem is IE, not the style)
I know, but how to react?
BTW ..be a nice chap and define an alt
tag for the image on line 66, eh?
(Even if simply alt="")


I'll fix that before the site goes official.
--
Please change the subject to "NEWSMAIL" in your emails.
Jul 20 '05 #3
On Mon, 24 May 2004 08:16:38 +0200, M. Ney <m.***@gmx.ne t> wrote:
Andrew Thompson <Se********@www .invalid> wrote:
IE does not recognise 'position: fixed', AFAIU.
(and the problem is IE, not the style)


I know, but how to react?


There's only one way to achieve the "fixed" rendering in IE, and it
involves the optional Javascript. It's not reliable for all users, most
notably Google, so ultimately you're stuck.

Design the page so that it degrades in IE in an acceptable fashion.
Jul 20 '05 #4
m.***@gmx.net (M. Ney) wrote:
Hi there,

please check out this page:

http://nadine-timo.de/hsm/index.html

In most browsers the menu and the top line are _fixed_. Who knows how to
tell Internet Explorer to do so?


Not without javascript. Simple scrolltop kind of thing with callback
polling. You'd set offsets for the top bar and your nav menu. It would
work fine, automatically. The rest would 'flow underneath' and not
even know the two blocks are there. Depending on what you have on
site, a simple horizontal line menu might be preferable, as well as a
much smaller title block - but . . But IE does NOT support FIXED, as
far as I know.
Jul 20 '05 #5
Neal <ne*****@yahoo. com> wrote:
There's only one way to achieve the "fixed" rendering in IE, and it
involves the optional Javascript. It's not reliable for all users, most
notably Google, so ultimately you're stuck.


Since when does Google care about the usage of js for presentational
effects?

--
Spartanicus
Jul 20 '05 #6
M. Ney wrote:
Andrew Thompson <Se********@www .invalid> wrote:
IE does not recognise 'position: fixed', AFAIU. (and the problem is
IE, not the style)


I know, but how to react?


Use parsing bugs in browsers to protect them.
/* the following is understood by Moz, O, IE5+, Safari, etc */
..myelement { position: absolute; }

/* fix for IE, which cannot parse child selector with no spaces */
/* this is understood by Moz, O, Safari, and others */
html>body .myelement { position: fixed; }

If you have links in the fixed part, then you should probably hide it
from IE5/Mac, too. It can fix elements, but the cursor does not change
on :link:hover for links inside a fixed section.

@media screen { /* hide from IE 5 Mac using media rule */
HTML>BODY .myelement { /* hide from IE Win as above */
position: fixed;
}
}
HTH
--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #7
On Mon, 24 May 2004 09:07:31 +0100, Spartanicus <me@privacy.net > wrote:
Neal <ne*****@yahoo. com> wrote:
There's only one way to achieve the "fixed" rendering in IE, and it
involves the optional Javascript. It's not reliable for all users, most
notably Google, so ultimately you're stuck.


Since when does Google care about the usage of js for presentational
effects?

You are correct - but nonetheless it's a good habit to avoid Js unless you
are positive it will not interfere with page use. Google wouldn't be
bothered by this usage, but the next time... Call it an error of caution.
Jul 20 '05 #8
Neal <ne*****@yahoo. com> wrote:
There's only one way to achieve the "fixed" rendering in IE, and it
involves the optional Javascript. It's not reliable for all users, most
notably Google, so ultimately you're stuck.


Since when does Google care about the usage of js for presentational
effects?


You are correct - but nonetheless it's a good habit to avoid Js unless you
are positive it will not interfere with page use. Google wouldn't be
bothered by this usage, but the next time... Call it an error of caution.


Most of us have no difficulty understanding the way javascript should be
used without the need to refer to it as if it was some magical monster
that can leap at you from the dark.

--
Spartanicus
Jul 20 '05 #9
Brian <us*****@juliet remblay.com.inv alid> wrote:
M. Ney wrote:
Andrew Thompson <Se********@www .invalid> wrote:
IE does not recognise 'position: fixed', AFAIU. (and the problem is
IE, not the style)
I know, but how to react?
Use parsing bugs in browsers to protect them. If you have links in the fixed part, then you should probably hide it
from IE5/Mac, too. It can fix elements, but the cursor does not change
on :link:hover for links inside a fixed section.


After downloading Firefox 0.8, I see that the rendering differences
between mozilla and IE are SO great, that it further justifies my
approach of routing different browsers to entirely different style
sheets.

Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
3689
by: deko | last post by:
I'm kind of lost on this one - I need to modify 2 files based on user input: $data_array = file($data_file); $counter_array = file($counter_file); // There is a line-for-line relationship between the data and counter files //for example, if the 3rd line in the counter file is deleted, //so also must the 3rd line of the data file be deleted....
1
2210
by: Wolfgang Lipp | last post by:
my question is: do we need container elements for repeating elements in data-centric xml documents? or is it for some reason very advisable to introduce containers in xml documents even where not strictly needed? how can a recommendation on this in the light of existing tools like w3c xml schema and relaxng as well es established practice be...
0
625
by: Wolfgang Lipp | last post by:
From: Lipp, Wolfgang Sent: Tuesday, 27?January?2004 13:26 <annotation> the first eleven contributions in this thread started as an off-list email discussion; i have posted them here with the consent of their authors. </annotation>
8
2192
by: Generic Usenet Account | last post by:
To settle the dispute regarding what happens when an "erase" method is invoked on an STL container (i.e. whether the element is merely removed from the container or whether it also gets deleted in the process), I looked up the STL code. Erase certainly does not delete the memory associated with the element. However, it appears that the...
22
3309
by: Luke | last post by:
Elements with name attribute: form, input, textarea, a, frame, iframe, button, select, map, meta, applet, object, param, img (if you know more reply...) Methods of addresing html elements: <form name="myform"> <input name="myinput" /> </form> 1. var input = document.forms.myform.myinput;//from nn3+ 2. var input =...
6
1887
by: Jakub.Bednarczuk | last post by:
Hallo everybody I have the problem with getting attributes values and also attributes names. I am reading an xml file with DOM. Lets see an example: file I read <root> <Def></Def> <Elements> <Element att1="1" att2="2" att3="3" //Some attributes are
4
2137
by: Beagle804 | last post by:
OK. I'm very new to Javascript and what I've learned so far has been find snippets of code on the web and using them in my php programs. I put together an application that allows a Reset button to clear radio inputs in a portion of the page. And another button which will also set the values of these same radio's to a certain value. The form is for...
2
7299
by: mars123 | last post by:
hi, I am facing a js error in my code, below is the prob. statement I have a radio2 javascript function as below, it works like this.. When a parent radio button is selected only one of its child radio button can be selected and on selection of a new child button(of the same parent) the earlier child button is deselected. When i navigate...
37
3641
by: Prisoner at War | last post by:
Actually, it doesn't have to be a blockquote...but I'm at my wits' end: I want to make bold several lines of text which have a pair of <br /tags between them...seems like the <b></bdo not "carry over" when there are <br /tags involved...??? I've tried using <p style="font-weight: bold;"></p>, I've tried <blockquote></blockquote>...I just...
0
7799
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8226
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8094
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5612
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3739
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2235
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1333
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1053
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.