HighDots Forums  

Problem: Dynamically center layers on centered web page - IE + Firefox

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Problem: Dynamically center layers on centered web page - IE + Firefox in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Freek te Water
 
Posts: n/a

Default Problem: Dynamically center layers on centered web page - IE + Firefox - 08-24-2004 , 04:05 PM






Hi,

Hope no-one is offended by my probably noob question...

Context:
I have a web page design, which always centres in the middle of the
screen (using a 100%*100% HTML-table). Now I also use layers, that get
visible when something is clicked. All works fine.

Problem:
All works fine... Except when chancing screen resolution or when
resizing the browser window I need the layers to stay centered on the
centered HTML-table, when resizing the web page or when a user uses a
different screen resolution.

Question:
Is it possible to dynamically center/reposition the layers I use, when a
user is resizing the web page or when a user uses a different screen
resolution..?

Many thanks for any help/advise/links,

Frederik, Amsterdam, Holland

Reply With Quote
  #2  
Old   
Neal
 
Posts: n/a

Default Re: Problem: Dynamically center layers on centered web page - IE + Firefox - 08-24-2004 , 10:01 PM






On Tue, 24 Aug 2004 23:05:18 +0200, Freek te Water <f.tewater (AT) amc (DOT) uva.nl>
wrote:

Quote:
Hi,

Hope no-one is offended by my probably noob question...

Context:
I have a web page design, which always centres in the middle of the
screen (using a 100%*100% HTML-table). Now I also use layers, that get
visible when something is clicked. All works fine.
I'll assume "layers" in this context means positioned or floated elements,
which is I believe a Dreamweaver term. Be aware the term "layers" is not
properly a CSS term, and can mean other things in different contexts.

Quote:
Problem:
All works fine... Except when chancing screen resolution or when
resizing the browser window I need the layers to stay centered on the
centered HTML-table, when resizing the web page or when a user uses a
different screen resolution.

Question:
Is it possible to dynamically center/reposition the layers I use, when a
user is resizing the web page or when a user uses a different screen
resolution..?

Many thanks for any help/advise/links,

Frederik, Amsterdam, Holland
It might be possible, but first you need to provide a link for us!

Set up a test case which demonstrates the problem with as little detail as
you can. Post the URL here and we'll look it over.


Reply With Quote
  #3  
Old   
Freek de Stoute
 
Posts: n/a

Default Re: Problem: Dynamically center layers on centered web page - IE+ Firefox - 08-25-2004 , 05:06 AM



Neal wrote:
Quote:
On Tue, 24 Aug 2004 23:05:18 +0200, Freek te Water
f.tewater (AT) amc (DOT) uva.nl> wrote:

Hi,

Hope no-one is offended by my probably noob question...

Context:
I have a web page design, which always centres in the middle of the
screen (using a 100%*100% HTML-table). Now I also use layers, that get
visible when something is clicked. All works fine.


I'll assume "layers" in this context means positioned or floated
elements, which is I believe a Dreamweaver term. Be aware the term
"layers" is not properly a CSS term, and can mean other things in
different contexts.
You're right, I mean positioned or floating elements that
(D)HTML-editing programs like DreamWeaver call Layers.
Quote:
Problem:
All works fine... Except when chancing screen resolution or when
resizing the browser window I need the layers to stay centered on
the centered HTML-table, when resizing the web page or when a user
uses a different screen resolution.

Question:
Is it possible to dynamically center/reposition the layers I use, when
a user is resizing the web page or when a user uses a different screen
resolution..?

Many thanks for any help/advise/links,

Frederik, Amsterdam, Holland


It might be possible, but first you need to provide a link for us!

Set up a test case which demonstrates the problem with as little detail
as you can. Post the URL here and we'll look it over.
Thanks, I've set it all up at this address:
http://www.isabelnabuurs.nl/try.htm


Reply With Quote
  #4  
Old   
Els
 
Posts: n/a

Default Re: Problem: Dynamically center layers on centered web page - IE + Firefox - 08-25-2004 , 05:29 AM



Freek de Stoute wrote:

Quote:
Neal wrote:

Freek te Water wrote:
Freek, mag jij van je moeder het water wel in?

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -


Reply With Quote
  #5  
Old   
Freek de Stoute
 
Posts: n/a

Default Re: Problem: Dynamically center layers on centered web page - IE+ Firefox - 08-25-2004 , 05:32 AM



Els wrote:

Quote:

Freek, mag jij van je moeder het water wel in?

Ja, dat mag ik, echt..! Maar niet tegen m'n moeder zeggen


Reply With Quote
  #6  
Old   
Els
 
Posts: n/a

Default Re: Problem: Dynamically center layers on centered web page - IE + Firefox - 08-25-2004 , 05:57 AM



Freek de Stoute wrote:

Quote:
Els wrote:

Freek, mag jij van je moeder het water wel in?

Ja, dat mag ik, echt..! Maar niet tegen m'n moeder zeggen
<g>

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -


Reply With Quote
  #7  
Old   
Freek de Stoute
 
Posts: n/a

Default Floating elements & keeping them centered - 08-25-2004 , 09:09 AM



Hi Neal & everyone here,

I would like to repeat my earlier question (Dynamically center
layers...), to avoid it getting lost in chitchat with Els ...

Context:
I have a web page design, which always centres in the middle of the
screen (using a 100%*100% HTML-table). Now I also use *floating
elements*, that get visible after user interaction. So far no trouble.
Quote:
Problem:
All works fine... Except when chancing screen resolution or when
resizing the browser window I need the layers to stay centered on
the centered HTML-table, when resizing the web page or when a user
uses a different screen resolution.

Question:
Is it possible to dynamically center/reposition the layers I use, when
a user is resizing the web page or when a user uses a different screen
resolution..?

Many thanks for any help/advise/links,

Frederik, Amsterdam, Holland


It might be possible, but first you need to provide a link for us!

Set up a test case which demonstrates the problem with as little detail
as you can. Post the URL here and we'll look it over.
Thanks, I've set it all up at this address:
http://www.isabelnabuurs.nl/try.htm




Reply With Quote
  #8  
Old   
Els
 
Posts: n/a

Default Re: Floating elements & keeping them centered - 08-25-2004 , 09:45 AM



Freek de Stoute wrote:

Quote:
Hi Neal & everyone here,
Hi Freek ;-)

Quote:
I would like to repeat my earlier question (Dynamically
center layers...), to avoid it getting lost in chitchat
with Els ...
:-(

[problem centering table while on top of centered background]

Quote:
Thanks, I've set it all up at this address:
http://www.isabelnabuurs.nl/try.htm
It's probably just me, but the page works, yet the stylesheet
(/isabel.css) is not where I'm trying to find it:
http://www.isabelnabuurs.nl/isabel.css
Am I missing something?

To see what you're doing wrong, I need to see the stylesheet.
Unless the stylesheet doesn't do anything...
.... copied the html to my local server... indeed, the
stylesheet reference is obsolete.
Okay...

Checking the html, I see it's a lot of JavaScript (which I
don't understand at all) and then a bunch of position:absolute
styles...

Sorry, but afaics this won't work.
You need to put that table *inside* the div that you are now
"laying it over" (hope that makes sense)

Position:absolute takes stuff out of the flow of the page.
You state for the LIVEthumbox:
position:absolute; left:319; top:100px;
That's where you put the pics. exactly 319 pixels from the
left side of the window, and 100px from the top.
You use Z-index to make them show in front of the page.
That page you make liquid.

This page just does what you tell it to. If the window gets
narrow, the page goes to the left, and the thumbnails stay
where you told them to stay: 319 pixels from the left.

Btw, great picture:
http://www.isabelnabuurs.nl/images/l...and/DeDijk.jpg

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: The Scene - Geloof


Reply With Quote
  #9  
Old   
Freek de Stoute
 
Posts: n/a

Default Re: Floating elements & keeping them centered - 08-26-2004 , 03:28 AM



Els wrote:

Quote:
Sorry, but afaics this won't work.
You need to put that table *inside* the div that you are now
"laying it over" (hope that makes sense)

Position:absolute takes stuff out of the flow of the page.
You state for the LIVEthumbox:
position:absolute; left:319; top:100px;
That's where you put the pics. exactly 319 pixels from the
left side of the window, and 100px from the top.
You use Z-index to make them show in front of the page.
That page you make liquid.

This page just does what you tell it to. If the window gets
narrow, the page goes to the left, and the thumbnails stay
where you told them to stay: 319 pixels from the left.

Btw, great picture:
http://www.isabelnabuurs.nl/images/l...and/DeDijk.jpg

Great help, Els..!
It seems I have a lot to learn, but I understand your solution and will
work on it today. Will keep you posted if you don't mind.

Thanks again for your time and trouble,

Freek


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.