473,379 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

IE & CSS-positioning

Hi,

I am wondering if there are any good resources for how to tweak a design
based on CSS-positioning so that it will work in IE? I believe position
: fixed is still a bit of a problem in IE, but are there any ways around
the problem to get it to behave a bit more like it does in Netscape?

The layout I am working with is this one (and it works like a charm in
Netscape 7.x):

HTML: http://www.westeros.org/Test/BoD-New/index2.html

CSS: http://www.westeros.org/Test/BoD-New/BoD2.css

If anyone has any thoughts on how to get it to work the same in IE
without resorting to actual frames or tables, I'd love to see them. :)

Linda
Jul 20 '05 #1
6 2078
Linda Antonsson wrote:

I am wondering if there are any good resources for how to tweak a design
based on CSS-positioning so that it will work in IE? I believe position
: fixed is still a bit of a problem in IE,
And by "bit of a problem in IE," you mean "IE doesn't support it, and
chokes when it encounters it." Right?
but are there any ways around
the problem to get it to behave a bit more like it does in Netscape?


There is no way to get IE to support something that it doesn't
support. If IE just ignored it, you'd be fine, but IE screws other
things up (e.g., hiding content), so hide the position: fixed rule.

< http://w3development.de/css/hide_css_from_browsers/ >

--
Brian
follow the directions in my address to email me

Jul 20 '05 #2
Brian wrote:
Linda Antonsson wrote:
And by "bit of a problem in IE," you mean "IE doesn't support it, and
chokes when it encounters it." Right?
Well, more or less, yeah. I don't use IE myself, but that fits the
description I got from a friend. Some of the elements do seem to stay
put where they should be, but others end up in all sorts of strange places.
There is no way to get IE to support something that it doesn't support.
If IE just ignored it, you'd be fine, but IE screws other things up
(e.g., hiding content), so hide the position: fixed rule.

< http://w3development.de/css/hide_css_from_browsers/ >


Well, just hiding it probably won't work too well, since I imagine it
means the page won't display in any way as intended in IE, so what I am
looking for is a way (if there is one) to accomplish a similar result
using the things that IE does support. I can handle 'basic' CSS okay,
but when it comes to work-arounds for things that aren't fully (or at
all) supported or things that behave in an unexpected way, I am bit lost. :)

Linda

Jul 20 '05 #3
Linda Antonsson wrote:

Some of the elements do seem to stay put where they should be, but
others end up in all sorts of strange places.
Right. You must hide position: fixed from MSIE/Win.
Well, just hiding it probably won't work too well, since I imagine
it means the page won't display in any way as intended in IE,
Not every browser will render your page in exactly the same way.
That's a fact of life. The sooner you come to terms with that, the
better off you'll be.
so what I am looking for is a way (if there is one) to accomplish a
similar result using the things that IE does support. I can handle
'basic' CSS okay, but when it comes to work-arounds for things that
aren't fully (or at all) supported or things that behave in an
unexpected way, I am bit lost. :)


Given: IE/Win breaks when faced with position: fixed. You asked, how
can I achieve this anyways. Answer: IE does not support position:
fixed. That's not the answer you want, but there isn't much else I
can tell you. There is not another value for the position property
called 'fixed-that-works-in-MSIE-WIN'

Ask yourself what is acceptable in MSIE/Win, given that position:
fixed is out of the question. Perhaps position: absolute would work?

--
Brian
follow the directions in my address to email me

Jul 20 '05 #4
Brian wrote:


Not every browser will render your page in exactly the same way.
That's a fact of life. The sooner you come to terms with that, the
better off you'll be.
Obviously, that's unavoidable. But when I think about differences
between browsers (excluding older browsers such as Netscape 4.x) in how
they render pages, I tend to think about things like them not
interpreting margins, padding or size-specifications quite the same, and
those differences can usually be ignored easily enough.

However, the fact that IE doesn't handle position : fixed is something I
consider as a bit more than a difference in rendering since using
position : absolute instead of position : fixed turns it into an
entirely layout.
Given: IE/Win breaks when faced with position: fixed. You asked, how
can I achieve this anyways. Answer: IE does not support position:
fixed. That's not the answer you want, but there isn't much else I
can tell you. There is not another value for the position property
called 'fixed-that-works-in-MSIE-WIN'
Well, obviously not. :) But there might have existed another way (as in,
outside of using position) of accomplishing a similar result. If nothing
such exists, fine, but since I wasn't sure I figured asking might be a
good idea. I also wasn't sure whether IE entirely ignored position :
fixed or just interpreted it shoddily.

Ask yourself what is acceptable in MSIE/Win, given that position:
fixed is out of the question. Perhaps position: absolute would work?


Unfortunately not, since the basis for the design was to emulate a
framed page.

Linda

Jul 20 '05 #5
Linda Antonsson <li***@mbox321.tele2.se> exclaimed in <bl************@id-196096.news.uni-berlin.de>:
such exists, fine, but since I wasn't sure I figured asking might be a
good idea. I also wasn't sure whether IE entirely ignored position :
fixed or just interpreted it shoddily.


Asking is always a good idea. Adding to what Brian has allready told you,
IE/Windows interprets "positions: fixed;" in a distinctly spooky fashion,
sadly.
Ask yourself what is acceptable in MSIE/Win, given that position:
fixed is out of the question. Perhaps position: absolute would work?


Unfortunately not, since the basis for the design was to emulate a
framed page.


There exist hacks - AFAIK one convoluted CSS one, and one amazingly
weird Javascript one. You can find references to both on

http://dorward.me.uk/www/frames/

Handle with care, of course.

--
- Tina Holmboe Greytower Technologies
ti**@greytower.net http://www.greytower.net/
[+46] 0708 557 905
Jul 20 '05 #6
Tina Holmboe wrote:
Asking is always a good idea. Adding to what Brian has allready told you,
IE/Windows interprets "positions: fixed;" in a distinctly spooky fashion,
sadly.
Spooky is definitely a good word for it.

There exist hacks - AFAIK one convoluted CSS one, and one amazingly
weird Javascript one. You can find references to both on

http://dorward.me.uk/www/frames/


Thanks. :) I am trying out the CSS hack, to see if that one can do what
I need, but so far I am getting some very peculiar results, probably
because I am not quite understanding how to implement it. The Javsscript
one looks quite complex, but if I can't get the CSS method to work, I'll
try that one out too. Somehow. :)

Linda

Jul 20 '05 #7

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

Similar topics

72
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools...
5
by: S | last post by:
Whew! Thanks for your help on that last post. I actually understand what you wrote. I'm trying not to use these groups as a way to get my code written for me, I really want to understand what...
7
by: J | last post by:
I am new to web design and I am looking for some advice on putting images within paragraphs of text. I have determined that sizing the height of my images to a given number of lines of text seems...
12
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b)...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
5
by: jhurrell | last post by:
I have been having some trouble getting my XSL style sheet to parse correctly. I have some XML outputted from an SQL-Server, that I then need to turn into multiple HTML files. This I have done...
2
by: Clint Chapman | last post by:
When I look at the source html generated from my asp, the links for the css in my theme are duplicated to include files in the _vti_cnf. <link...
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
2
by: SeanInSeattle | last post by:
Hey all. I'm working on a fairly large XSL file along with an external css file for my xml data. I'm running into cross browser issues. The code below works in IE, but not in Firefox 3.0. Any...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.