473,409 Members | 1,983 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,409 software developers and data experts.

Absolute position, variable height?

I'm taking the liberty of reposting the query I posted five days
ago. I hope that it just got overlooked because it was in the middle
of a thread.

Sample page:
http://www.acad.sunytccc.edu/instruc...e/probform.htm
The above has the breadcrumbs physically at end of file but
positioned absolutely via CSS to the start of the display, so as to
have the actual page content show in search engine results. (The
breadcrumbs are presently in a table inside the div. I do plan to
get rid of the table.)

This replaces
http://www.acad.sunytccc.edu/instruc...t/probform.htm
which has the breadcrumbs physically at the top of the file.

But the absolutely positioned version naturally breaks when the
user's font size is quite large or the window is quite narrow: the
breadcrumbs overlay the beginning of the page content.

Here's my question: if I want to position anything visually across
the top of the page but have it physically at the end of the file,
how do I set it up so that the actual content moves down according
to the height of the positioned stuff?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #1
2 6089

"Stan Brown" <th************@fastmail.fm> wrote in message
news:MP************************@news.odyssey.net.. .
I'm taking the liberty of reposting the query I posted five days
ago. I hope that it just got overlooked because it was in the middle
of a thread.

Sample page:
http://www.acad.sunytccc.edu/instruc...e/probform.htm
The above has the breadcrumbs physically at end of file but
positioned absolutely via CSS to the start of the display, so as to
have the actual page content show in search engine results. (The
breadcrumbs are presently in a table inside the div. I do plan to
get rid of the table.)

This replaces
http://www.acad.sunytccc.edu/instruc...t/probform.htm
which has the breadcrumbs physically at the top of the file.

But the absolutely positioned version naturally breaks when the
user's font size is quite large or the window is quite narrow: the
breadcrumbs overlay the beginning of the page content.

Here's my question: if I want to position anything visually across
the top of the page but have it physically at the end of the file,
how do I set it up so that the actual content moves down according
to the height of the positioned stuff?

Well, when no one else will touch a positioning question, I poke my
inadequate head in.

Seems to me that unless the div is at the point in the code where it's to
appear, you cannot float it. And if you cannot float it, you cannot get
items rendered under it to respect its size if it should vary.

Two possible solutions pop into my head.

1) Move #crumbs back to top and float left. Then clear, on the content div.
In fact, replace the table with two divs (floated left and right
respectively) within the crumbs div.

2) Set a width for the crumbs div. Scrolling will be invoked at narrow
screen widths, but you can leave the crumbs div at the end of the file where
you seem to want them.
Jul 20 '05 #2
In article <3f**********************@news.rcn.com> in
comp.infosystems.www.authoring.stylesheets, Neal wrote:
Seems to me that unless the div is at the point in the code where it's to
appear, you cannot float it. And if you cannot float it, you cannot get
items rendered under it to respect its size if it should vary.
Thanks, Neal. That's kind of ho I was thinking, but I wasn't sure
whether I was missing something.
2) Set a width for the crumbs div. Scrolling will be invoked at narrow
screen widths, but you can leave the crumbs div at the end of the file where
you seem to want them.


Hmm -- didn't think about this. I'll try some experiments.

(You had mentioned getting rid of the table in crumbs. That's
definitely in my plans. I was trying to solve the harder problem
first.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #3

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

Similar topics

5
by: Chris Leonard | last post by:
Sorry if I'm posting a similar query again but I think this explanation of what I require is better. I have a page which is very long and as I scroll down the page there are various links, what...
10
by: Stephan Koser | last post by:
Hi, how can I get the absolute position of a relative element? We dynamically create a page with multiple segments which are relatively ordered among each other. In these segments we have...
1
by: Luqman | last post by:
Where is Form Relative Position and Absolute Position in VS.Net 2005 ? Best Regards, Luqman
4
by: Samuel | last post by:
Hi, Is it possible to get absolute position of element with javascript? e.g. I have textbox somewhere in table. Textbox relative to table cell position is 0,0. How can I get Textbox absolute...
1
by: SolFrankRosen | last post by:
I'm trying to make a button on my form be in a fixed position, I used: <asp:Button ID="butCancel" style="position:absolute"; runat="server" Text="Cancel" /> but I get an error that this "is...
2
by: rhino | last post by:
I'm working on a layout that has a variable-height middle section and need some suggestions on how I can make the bottom section adapt to that situation. Basically, I have: - a fixed-length,...
0
by: Microsoft Newsserver | last post by:
Im using IE 6/7 / ASP.NET / Javascript. I need to determine the absolute position of elements on my page client side. In summart, I need to know if an event triggered mouse position appears...
30
by: Bassem | last post by:
Hi, I've two div.s. One contains four images, when click on one, a JS function create an image corresponding to it and append it to the second div. I'm attempting to make each new image is to be...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
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...
0
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...

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.