I have a page that's being dynamically generated.
It has 2 parts, which I want to display on top of each other (not
overlapping, but one after the other). I won't know the height of the
1st part until run time.
Now, to compound the problem, each part has elements inside it that
are absolute positioned inside its box.
I have tried to use <div style="position:absolute">, but I need to
know the top and height of the 1st part in order to place the 2nd part
(which I don't).
Of course using <div> tags without a position:absolute style will
place the parts one after the other, but then the contained elements
are then positioned inside the browser as opposed to the desired
result; positioned inside its containing box.
Any suggestions? Tips? 6 3898
"Bryce (Work)" <sp******@berzerker-soft.com> wrote in message
news:js********************************@4ax.com... I have a page that's being dynamically generated.
It has 2 parts, which I want to display on top of each other (not overlapping, but one after the other). I won't know the height of the 1st part until run time.
Now, to compound the problem, each part has elements inside it that are absolute positioned inside its box.
I have tried to use <div style="position:absolute">, but I need to know the top and height of the 1st part in order to place the 2nd part (which I don't).
Of course using <div> tags without a position:absolute style will place the parts one after the other, but then the contained elements are then positioned inside the browser as opposed to the desired result; positioned inside its containing box.
Any suggestions? Tips?
Wait with layout and positioning until runtime. Users may witness a funny
looking page while loading, but many sites work that way, including some
sections at microsoft.com.
Ivo
On Tue, 30 Sep 2003 05:21:32 +0200, "Ivo" <no@thank.you> wrote: Wait with layout and positioning until runtime. Users may witness a funny looking page while loading, but many sites work that way, including some sections at microsoft.com. Ivo
yea, I ended up implementing with some javascript onload. Works, I
just pray to god none of my clients have turned off JavaScript in
their browsers...
Bryce (Work) wrote: I ended up implementing with some javascript onload. Works, I just pray to god none of my clients have turned off JavaScript in their browsers...
lol perhaps you should rely on something more material than prayer
--
Brian
follow the directions in my address to email me
On Tue, 30 Sep 2003 16:16:59 -0400, "Bryce (Work)"
<sp******@berzerker-soft.com> wrote: On Tue, 30 Sep 2003 05:21:32 +0200, "Ivo" <no@thank.you> wrote:
Wait with layout and positioning until runtime. Users may witness a funny looking page while loading, but many sites work that way, including some sections at microsoft.com.
yea, I ended up implementing with some javascript onload. Works, I just pray to god none of my clients have turned off JavaScript in their browsers...
Estimates of visitors with Javascript off or unavailable range from 10%
to 20%, so you may need to rethink that one.
The absolute minimum you need to do would be a warning to the reader
that the page will display strangely without Javascript. But my view is
that doing a table-based layout is preferable to doing a CSS layout
which breaks without Javascript.
--
Stephen Poley http://www.xs4all.nl/~sbpoley/webmatters/
On Wed, 01 Oct 2003 10:33:04 +0200, Stephen Poley
<sb******************@xs4all.nl> wrote: yea, I ended up implementing with some javascript onload. Works, I just pray to god none of my clients have turned off JavaScript in their browsers...
Estimates of visitors with Javascript off or unavailable range from 10% to 20%, so you may need to rethink that one.
The absolute minimum you need to do would be a warning to the reader that the page will display strangely without Javascript. But my view is that doing a table-based layout is preferable to doing a CSS layout which breaks without Javascript.
I wish I could... Table layout would be best in our situation, but
that would involve a total rewrite as opposed to a quick solution...
Thank god we are replacing this app with something better...
On Mon, 29 Sep 2003 10:42:55 -0400, Bryce (Work) wrote: I have tried to use <div style="position:absolute">, but I need to know the top and height of the 1st part in order to place the 2nd part (which I don't).
Of course using <div> tags without a position:absolute style will place the parts one after the other, but then the contained elements are then positioned inside the browser as opposed to the desired result; positioned inside its containing box.
position: relative also creates a new containing box. I often find that
positioning the main content div relatively, and any additional divs
absolutely allows me to get the layout I want without knowing the height
of the divs involved.
--
"Okay, this time I'm Poison Ivy, you're Harley Quinn, and we're pulling a
daring heist of an adult novelty goods store." http://www.huh.34sp.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jerome Lefebvre |
last post by:
Hello,
Hope this will interest a few. I been working with a friend on the
problems given out during the "International Collegiate Programming Contest"
(ICPC) http://icpc.baylor.edu/icpc/ ....
|
by: Jim Hubbard |
last post by:
Are you up to speed on the difficulties in using the 1.1 .Net framework?
Not if you are unaware of the 1,596 issues listed at KBAlertz
(http://www.kbalertz.com/technology_3.aspx).
If you are...
|
by: 3f |
last post by:
Hello;
We have made a web application that people can download from our web site
and installed on:
Windows XP
Windows 2000 Professional
Windows 2003 Server
Windows 2000 Server
|
by: Corky |
last post by:
This works:
db2 SELECT DISTINCT PROBLEM_OBJECTS.PROBLEM_ID FROM PROBLEM_OBJECTS
INNER JOIN PROBLEMS ON PROBLEM_OBJECTS.PROBLEM_ID =
PROBLEMS.PROBLEM_ID WHERE INTEGER(DAYS(CURRENT DATE) -...
|
by: Ellen Graves |
last post by:
I am having a lot of problems with DB2 8.3.1 on RH Linux AS2.1.
Installing and running stored procedures is problematic. Stored
procedures I have used for years on V7 on WinNT are now failing...
|
by: Jim |
last post by:
I have spent the past few weeks designing a database for my company.
The problem is I have started running into what I believe are stack
overflow problems. There are two tab controls on the form...
|
by: BBFrost |
last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net
2003. At first things were looking ok, now problems are starting to
appear.
So far ...
(1) ...
|
by: Dales |
last post by:
I have a custom control that builds what we refer to as "Formlets"
around some content in a page. These are basically content "wrapper"
sections that are tables that have a colored header and...
|
by: Brian |
last post by:
NOTE ALSO POSTED IN
microsoft.public.dotnet.framework.aspnet.buildingcontrols
I have solved most of my Server Control Collection property issues.
I wrote an HTML page that describes all of the...
|
by: Sergistm |
last post by:
Hello World, :D
I have a problem that it is making me crazy, I hope you can help me.
I'm trying to execute a .exe file with the Procces.Start, and there
is no problem when the file is on my...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |