473,654 Members | 3,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fixed layers in IE ?

Hi everybody !

I'm new here, and I'm French, so pardon me for any and all grammar and
typo mistakes !
I hope you'll understand everything anyway :)

I'm working on my portfolio site, which I am completely rewriting in
HTML 4. strict + CSS.
In the Gallery part of the site, people can see thumbnails of my work
and when they click on any work, it opens a popup (btw : I'm not here to
decide of the wiseness of this choice).
I have made a version of the pop-up that looks the way I want it to...
but only in netscape and associates (Gecko-based, to make a long story
short), IE refusing to display thing the way I intended.
As the other browsers don't seem to have problems, I'm thinking it's IE
working the way it wants to instead of the way it should... I had
forgotten I should be prepared for disapointment when dealing with CSS
implementation in IE !

The problem is this :
In the page in the popup, there is a div "titre" (title) that contains a
couple of lines of text, presenting the work. It is "fixed". (that's
where the problem lies)
Below this div is a list that is styled to be displayed "inline" and
with a margin-top on the ul to avoid running under the fixed div.

The "fixed" property is, from what I've heard, not supported by IE...
which renders the page in a quite ugly fashion !
Someone offered to use frames, but I think he was kidding :)
If I take the margin-top out of my ul, it looks "better" in IE, but then
it sucks in netscape or mozilla...
The only "stable" solution (the one that seems to work everywhere, and
with very little changes in display) is using tables... which Opera
(from what I gathered) doesn't understand ?!

And, frankly, if I'm trying so hard (and managing, up to now) to code in
HTML 4 *strict* the main pages of my site, it's not to use tables and
frames in my popups...

So, I'm fishing for any solution here...
I just have no clue what to do.

So, anyway, here is the adress of the page calling a demo popup :
http://www.pouipouidesign.net/lbtc.htm
When you click on the "lbtc" link at the top left of the page, a popup
should open, that's were the problem is (check the source).

The CSS used is the following :
-----------------
body {
margin: 0px;
padding: 10px;
text-align: left;
font: 0.7em black verdana;
}

#titre {
position: fixed;
font-size: 1.2em;
font-weight: 800;
font-variant: small-caps;
color: #FF9900;
font-stretch: expanded;
}

#titre span {
color: black;
font-size: 0.7em;
font-weight: lighter;
font-stretch: extra-expanded;
}

#titre span.soustitre {
font-size: 1em;
line-height: 2.5em;
font-style: italic;
}
-----------------

I appreciate any help, clue or hint to how I can solve this issue,
especially since I'm in a sort of rush : not being able to solve this
thing is stopping me from advancing on the rest of the site, and I need
the site in my job search !
Thanks again for your attention, and for the help you'll (hopefully)
bring me !!

Marie
Jul 20 '05 #1
6 3627
Just to add that if anyone has an alternative to the ul/li that he/she
thinks would semantically be more correct, or would pose less trouble
(divs ?), I'm all ears :)
Marie
Jul 20 '05 #2
Ok, I'm being a bit dense today, my apologies to everyone...
Here is the missing css code, the part about the ul and li... the
essential part :)

Sorry !!!

Missing part of the previously pasted css code
----------------------
ul {
margin-top: 6em;
margin-left: -4em;
width: 2360px;
height: 430px;
}

li {
width: 770px;
height: 430px;
padding-left: 10px;
float:left;
list-style-type: none;
border-right: 1px solid black;
}
----------------------
Thanks again !

Marie
Jul 20 '05 #3
Marie ALHOMME@ Will Up wrote:

I'm new here, and I'm French, so pardon me for any and all grammar and
typo mistakes !
Vous écrivez bien en anglais. Ne vous inquietez pas. Mon français, par
contre... eh bien, vous verrez.
I hope you'll understand everything anyway :)
Ben oui !
I'm working on my portfolio site, which I am completely rewriting in
HTML 4. strict + CSS.
In the Gallery part of the site, people can see thumbnails of my work
and when they click on any work, it opens a popup (btw : I'm not here to
decide of the wiseness of this choice).
Well, this is not a helpdesk. What is discussed here is up to each
participant. If people want to talk about why popups are a bad idea,
or why they're a good idea, they'll do so, in spite of what anyone
else wants. As long as it's on-topic, it's fair to discuss it. I
suppose pop-ups belong in ciwa-sitedesign or -html more than in
stylesheets, but it will still create discussion here.

And, on that note, let me tell you not to use popups. :-p I'll leave
it other to discuss how popups are hated, and how you should leave it
to the user. Better still, just read the scores of threads about it.
Let me just add this: I redesigned an artist's website. It had
thumbnails, and used javascript to create small popups with her photos
framed on the. But when javascript was disabled, the links failed to
do anything. I fixed that so that the photo displayed in the same
window when javascript was disabled.

Now, several months later, the photographer emailed me to say she was
unhappy with popups altogether, and wishes she had never used them.
It seems she watched some friends try to navigate through her
galleries, and the popups made it painfully slow for them. They
didn't know any shortcuts to close windows or change focus, and they
were slow with the mouse.

Thus, for an artist's website, popups may not be the way to go for
usability. The site in question:

http://www.julietremblay.com/

And a site which does not use popups, for comparison:

http://www.tedbeardsley.com/
The problem is this :
In the page in the popup, there is a div "titre" (title) that contains a
couple of lines of text, presenting the work. It is "fixed". (that's
where the problem lies)

The "fixed" property is, from what I've heard, not supported by IE...
C'est correct. La solution: position: absolute

div.titre {
position: absolute ;
top: 0 ;
left: 0 ;
}

If you want position fixed in Gecko browsers, just use a trick to hide
css from IE.

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

In particular:
http://w3development.de/css/hide_css...rowsers/child/
div.titre {
position: absolute ;
top: 0 ;
left: 0 ;
}

body>div.titre {
position: fixed ;
}

Ça vous va ?
The only "stable" solution (the one that seems to work everywhere, and
with very little changes in display) is using tables... which Opera
(from what I gathered) doesn't understand ?!


Du tout. Opera understands tables fine. Opera users can turn table
support off, perhaps that is what you heard?

De toute façon, ca vaut mieux de ne pas utiliser "tables" pour la
présentation. Mais vous le saviez déjà.

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

Jul 20 '05 #4
Brian wrote:
Marie ALHOMME@ Will Up wrote: Vous écrivez bien en anglais. Ne vous inquietez pas. Mon français, par
contre... eh bien, vous verrez.
Thank you !
Votre français est excellent, pas d'inquiétude ! :)

Well, this is not a helpdesk.
Funny, I saw that one coming ;)
What is discussed here is up to each
participant. If people want to talk about why popups are a bad idea,
or why they're a good idea, they'll do so, in spite of what anyone
else wants. As long as it's on-topic, it's fair to discuss it. I
suppose pop-ups belong in ciwa-sitedesign or -html more than in
stylesheets, but it will still create discussion here.
Of course, I never meant to imply that those answers would be
inappropriate or even regarded by me as insulting or anything like that.
I just meant to say that I've been through this discussion on pop-ups
many many times and I know the cons and pros, and why people say not to
use them, or to use them...
I have listened and participated in all those discussions, and the
end-result is that for this site, I have already made my decision as to
using pop-ups, and *no one* will make me budge :)
And, on that note, let me tell you not to use popups. :-p I'll leave
it other to discuss how popups are hated, and how you should leave it
to the user. Better still, just read the scores of threads about it.
Let me just add this: I redesigned an artist's website. It had
thumbnails, and used javascript to create small popups with her photos
framed on the. But when javascript was disabled, the links failed to
do anything. I fixed that so that the photo displayed in the same
window when javascript was disabled. [SNIP]

:) Thank you for giving me your opinion... which I will kindly disregard
;)
I know of all the limitations and reasons, but I still have decided to
use pop-ups :)
I am already aware of the "double link" precaution so that people
without javascript can still use links... I have actually implemented it
everywhere as a rule !

C'est correct. La solution: position: absolute

div.titre {
position: absolute ;
top: 0 ;
left: 0 ;
}

If you want position fixed in Gecko browsers, just use a trick to hide
css from IE. [SNIP] Ça vous va ?
Impeccable :)
It's actually the solution I had finally decided on implementing, even
though I lose the effect in IE.
Someone on another newsgroup has custom-made for me a version that
"acts" like "fixed" in IE *and* the others... I'll try it out tonight or
tomorrow, and will let you know how that goes.
I'm guessing a few people could be interested !! :)

Du tout. Opera understands tables fine. Opera users can turn table
support off, perhaps that is what you heard?
I don't know ?
On another newsgroup, when I mentionned tables, one of the participants
pointed out : "My opera doesn't understand tables"... was he leading me
along ? :)

De toute façon, ca vaut mieux de ne pas utiliser "tables" pour la
présentation. Mais vous le saviez déjà.


Yup... "tables are for tabular data and not for layout"... get that
thrown at you enough times and you'll assimilate it :)

Thank you very much for your help !

I will certainly come back in a few days to ask for your opinion on the
new version of my site...

In the meantime, have a great day !! :)
Marie
Jul 20 '05 #5
Marie ALHOMME@ Will Up wrote:
Brian wrote:
Marie ALHOMME@ Will Up wrote:
Votre français est excellent, pas d'inquiétude ! :)
Vous êtes trop gentille, vous.
C'est correct. La solution: position: absolute
Ça vous va ?


Impeccable :)


:)
Someone on another newsgroup has custom-made for me a version that
"acts" like "fixed" in IE *and* the others... I'll try it out tonight or
tomorrow, and will let you know how that goes.
I'm guessing a few people could be interested !! :)
On a déjà discuté cette solution. It requires setting height on the
html element to 100%, I think, then setting overflow on body. Tout
simplement, il me faudrait trop. Les sites que je fais, s'ils
fonctionnent du façon différent, selon le browser utilisé, ça ne
m'embête pas.
I don't know ?
On another newsgroup, when I mentionned tables, one of the participants
pointed out : "My opera doesn't understand tables"...
Ah. The important word is "My." He had likely disabled tables, so
Opera did not render them.
was he leading me along ? :)
Il ne vous a pas dit tout. Le browser Opera -- ou bien Opéra? :) --
peut parfaitement faire un <table>, à moins que l'on ne les supprime.
I will certainly come back in a few days to ask for your opinion on the
new version of my site...

In the meantime, have a great day !! :)


vous même !

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

Jul 20 '05 #6
I'm not that good in French, but are you looking for this:
<http://limpid.nl/lab/css/fixed/>?

--
Anne van Kesteren
<http://www.annevankest eren.nl/>
Jul 20 '05 #7

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

Similar topics

1
2802
by: Lizzy | last post by:
I have an internet application which has a progress bar show whenever the customer is requesting data from the server. This progress bar is coded to work in both Netscape 4.75 and above and IE 5.0 and above. The progress bar code is written in javascript in an external js file (progressbar.js). The web screen is in a seperate jsp file (Registration.jsp). The problem I'm having is that the progress bar is not showing in Netscape 4.75 on a...
6
6834
by: David List | last post by:
I'm having a problem using different properties of the document object in the example javascripts in my textbook with browsers that identify themselves as using the Mozilla engine. One example of these problems is using document.layers. I have Google'd for examples of how to use the document object specifically with Mozilla, but I cannot find anything that explains why my problems occur. Could anyone here see through the included example...
1
3000
by: Bru, Pierre | last post by:
hi, I designed a background for a page. it is for 1024*768 screens. but everyday, the screen go larger and I dont want everyone to wait for a backgroud larger than needed. so I used a tiled neutral background and used a fixed <div> to show my background. but doing so, I can not have a fixed background with text "floating" above it. :(
2
5004
by: hq105862 | last post by:
Hi, Is it possible to simulate frames behaviour with CSS? Currently, I've used CSS to create the visual look of my old framed site. For this I've used styles that place the images at absolute positions. Then I thought, if I fixed the image positions, the images will stay put and the 'body' will scroll up, like in frames.
4
3793
by: ashkaan57 | last post by:
Hi, I am using the following code to show/hide part of an html page. It works in Netscape and Firefox but dies in IE: "Error: document.layers is null or not an object" <style> ..noshow { display: none; } ..menu {
0
1625
by: rocketmonkeys | last post by:
The below mangled garbage is a fixed text illustration. I'll try to describe the problem. This is a general web layout problem I've had for a while, not confined to this specific case. I would like to have a block of a fixed size (Say, a DIV on the top of the page of height 100px) and a block filling the rest of the page (in this example, a DIV with height of PAGE_HEIGHT - 100px). Is there any way to do this, either cleanly or hacked?...
5
2373
by: Burt | last post by:
There's an architect at my 200 person company that advocates having many layers in all my C# apps. He wants web services, use case handlers, facade layers, data gateways, etc. When I ask why all this complexity is necessary, he gives me what if scenarios: "What if you ever want to access the business logic with another front end?", for example. These are typical "intranet apps"...one or more screens selecting and updating rows in a...
1
5570
by: Grimm | last post by:
I am developing an internalk inteface that integrates alot of seperate tools into one interface. The current version uses one Iframe inside a div layer for positioning. Currently the seperate web tools do not have the ability to stay active. As you switch from tool to tool the previous information is lost unless you use a Back button. I need to place multiple div layers with I frames in them that can be shown or hidden based on selection. The...
3
2206
by: Avaenuha | last post by:
I have a banner-and-sidebar menu that I want to remain always-accessible. So I've made them both position:fixed, and used z-index to ensure the layers work properly. Both the CSS and HTML validate, and the whole setup works exactly the way I want it to in firefox. Link to site in question However, in IE there are several problems; the major problem is that, instead of layering the two divs on top of each other, IE puts the later-created...
0
8376
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8708
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8594
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2716
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
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1596
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.