473,774 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I place a footer after many absolute DIVs ???

Dears,

I'd like to know the cleanest solution for the following problem.
I want to insert some CSS/htm after a long vertical column
of DIVs absolutely positioned.

Since this code is generated automatically by a streamwriter, I am
looking for the cleanest and simplest solution possible.

I would like:
- No reference to external stylesheet
- No solution where I have to write something "before and after" some
other code. The code should be in on place only, possibly at the end of
the page.

Thank you very much,

Pam

----------------------------------------------------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
<meta http-equiv="content-type" content="text/html;charset=UT F-8">
<style type="text/css" media="screen">
..c0bg{position :absolute...
..c0fg{position :absolute...

..... A lot DIVs here in a long vertical column ...
.... All DIVs absolutely positioned

<div class=c3bg style="top:...
<div class=c3bg style="top:...
Q. How do I place the following at the bottom of the page ?

<br><p><b><fo nt face="Tahoma" size="2" color="#99CCFF" >Page
automatically generated on ... </font></a></font></b></p>

</body>
</html>

Aug 20 '06 #1
22 2240
pa***********@l ibero.it wrote:
I'd like to know the cleanest solution for the following problem.
I want to insert some CSS/htm after a long vertical column
of DIVs absolutely positioned.
Then you've go problems - unless you know the height of the column (and can
absolutely position the other content), then you've no way of knowing
where "after" is.
<div class=c3bg style="top:...
<div class=c3bg style="top:...
On the subject of which - how do you know where "after" is for the second of
those divs? (Hint: The user might change their font size).

--
David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Aug 20 '06 #2
Hi David,

As to fonts, No the user cannot change sizes. Everything is done
absolutely with pixel precision. Fonts are fixed defined in pixels.
This is a very precise layout (enterprise report). User cannot change
it. User can only interact with it with some onclick onmousedown
events.

I thought that with a mix of Javascript (to retrieve the end of the
document)
and CSS this could be done.

(I could keep track of the last pixel written programmaticall y, but, if
possible, I would like to avoid that complication.)

I would prefere something self contained based on CSS (and possibly
javascript, if necessary)

-Pam
David Dorward ha scritto:
pa***********@l ibero.it wrote:
I'd like to know the cleanest solution for the following problem.
I want to insert some CSS/htm after a long vertical column
of DIVs absolutely positioned.

Then you've go problems - unless you know the height of the column (and can
absolutely position the other content), then you've no way of knowing
where "after" is.
<div class=c3bg style="top:...
<div class=c3bg style="top:...

On the subject of which - how do you know where "after" is for the second of
those divs? (Hint: The user might change their font size).

--
David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Aug 20 '06 #3
On 2006-08-20, pa***********@l ibero.it wrote:
Hi David,

As to fonts, No the user cannot change sizes. Everything is done
absolutely with pixel precision.
That is almost always a mistake.
Fonts are fixed defined in pixels. This is a very precise layout
(enterprise report). User cannot change it. User can only interact
with it with some onclick onmousedown events.
The user can always change it, unless you have some way of
absolutely controlling the users' browser and environment.

--
Chris F.A. Johnson <http://cfaj.freeshell. org>
=============== =============== =============== =============== =======
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Aug 20 '06 #4
On 20 Aug 2006 03:17:54 -0700, pa***********@l ibero.it wrote:
User cannot change
it.
You'd be suprised!

--
buy, bought, bye
Aug 20 '06 #5
As to fonts, No the user cannot change sizes. Everything is done
absolutely with pixel precision.

That is almost always a mistake.
Agree with that from the perspective of a web artist. My perspective is
that
of a document prepared in a page setter (like quark Xpress) and
outputted to web.
There are many other things (pictures, label, text) to match: so
precision is a feature.
Fonts are fixed defined in pixels. This is a very precise layout
(enterprise report). User cannot change it. User can only interact
with it with some onclick onmousedown events.

The user can always change it, unless you have some way of
absolutely controlling the users' browser and environment.
That I have just tried. Changing the font size from the menu has no
effects (tried with IE).

Thanks for the advice. If all of you experts think there is no clean
solution in js/css, I will resort
to compute the last div position programmaticall y. Let me know...

-Pam

Aug 20 '06 #6

Nije Nego ha scritto:
On 20 Aug 2006 03:17:54 -0700, pa***********@l ibero.it wrote:
User cannot change
it.

You'd be suprised!
eh? I do not want surprises. Tell me if there is anything I should take
care of :)

-Pam
>
--
buy, bought, bye
Aug 20 '06 #7
pa***********@l ibero.it wrote:

Don't top post.
As to fonts, No the user cannot change sizes.
Wrong. The user can always change the font sizes.
Everything is done absolutely with pixel precision.
Almost always a mistake on the WWW.
Fonts are fixed defined in pixels.
Which will stop the user from resizing the text ... if (and only if) they
use Internet Explorer ... and if (and only if) they don't use a custom
style sheet ... and if (and only if) they don't tell their browser to
ignore font size information from websites ... and if (and only if) they
don't have a bookmarklet to zap font size information ... and ... and ...
and.
--
David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Aug 20 '06 #8
David Dorward ha scritto:
pa***********@l ibero.it wrote:

Don't top post.
Do not understand the meaning of "top post". What does that mean?
Sorry if I have done something wrong (I use Google to post).
>
As to fonts, No the user cannot change sizes.

Wrong. The user can always change the font sizes.
Everything is done absolutely with pixel precision.

Almost always a mistake on the WWW.
Answered above.
>
Fonts are fixed defined in pixels.

Which will stop the user from resizing the text ... if (and only if) they
use Internet Explorer ... and if (and only if) they don't use a custom
style sheet ... and if (and only if) they don't tell their browser to
ignore font size information from websites ... and if (and only if) they
don't have a bookmarklet to zap font size information ... and ... and ...
and.
Good to know that. The pages are web rendering that try to clone
pages made with a page setter. The user should not have interest to
spoil
his layout work, done on the page setter.

By the way is there some tag I can insert to avoid some of these
problems?
>

--
David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
-Pam

Aug 20 '06 #9
pa***********@l ibero.it wrote:
David Dorward ha scritto:
>pa***********@l ibero.it wrote:

Don't top post.

Do not understand the meaning of "top post". What does that mean?
http://www.google.com/search?q=%22top%20post%22 - first hit
Good to know that. The pages are web rendering that try to clone
pages made with a page setter. The user should not have interest to
spoil his layout work, done on the page setter.
But they might have interest in having the text large enough to read. Or
they might have a minimum font size set.
By the way is there some tag I can insert to avoid some of these
problems?
No.
--
David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Aug 20 '06 #10

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

Similar topics

82
10722
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | | | | | | | | left | center | right | | | | | | | | |
1
3947
by: Tony Benham | last post by:
Hi, I've been trying for a while, but I still haven't worked out a way of making a footer appear at the bottom of a webpage, and not at the bottom of the browser window ! See http://woodleyzebrasfc.port5.com/index.html for an example. The div with id footer appears at the bottom of the browser window, but I'm trying to make it appear at the bottom of the page, so that you scroll down to see it if needed, and it will be placed below the...
2
4477
by: Tristan Miller | last post by:
Greetings. I have a two-column web layout, where the first column is just the regular body text with a "marign-right" of 16em, and the second column is an "absolute"-positioned div with a width of 16em. I would like to have a footer extending across the entire width of the page, at the very bottom of the page (i.e., after both columns end). How can I do this? There is no way of knowing in advance which of the two columns will be...
7
2107
by: Ian Watts | last post by:
Hi I am designing a website for a local school, and I have knocked up a quick prototype for them to look at. http://www.ianwatts.info/schoolweb/ http://www.ianwatts.info/schoolweb/school.css The problem I am having is that the footer is not clearing both of the
11
8330
by: Peter Wu | last post by:
Hello, I want to create a Header and Footer for every ASPX page I build. I created 2 Web user controls respectively and placed them in an ASPX page. The problem is that I cannot position the Footer to be always at the bottom of the page. The Header and Footer are always together at the top of the page. Was I missing anything? Thanks!
5
1929
by: Richard Shewmaker | last post by:
Hi. I've been using CSS for basic stuff, mostly concerning fonts. I want to get going with using CSS fully. Two days ago I purchased O'Reilly's "Cascading Style Sheets" and "CSS Cookbook." I've been reading them and have tried some really basic stuff and am not having a very good time (lol). I'm feeling really stupid, to be honest. I was able to center an image on a page by mucking about with code primarily from the Cookbook. I only...
2
1377
by: dubing | last post by:
Hi, I'm trying to create a style sheet for print. Part of the style sheet is shown below. The three columns are layed out fine. But the footer is messed up with the navigation menu at the top. What should I do to make the footer always show up at the bottom of the page? Thanks in advance. == #container {
4
7817
by: TheCeej | last post by:
I'm sorry to post what is ultimately a myspace problem, but I'm sure I'd still be having this problem with any html/css document, so the answer would more than likely be able to help anyone out. I'm pretty sure I know what the problem is already. I just don't know how to fix it. I'd be very grateful of any help. I'll post what I'm trying to do, what keeps happening, what I believe the problem is, the link to my page and the css, and things...
4
29389
by: john | last post by:
Hi to All, I am new to html authoring, so sorry if my terminology is not correct or exact. I would like to position a footer div to the bottom of the browser window. As I research in the web shows this could be done a containing element with "min-height: 100%;" and an absolute positioned element (div) inside, aligned to bottom ("position: absolute; bottom:0px")
0
10267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
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...
1
10040
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9914
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
8939
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7463
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5355
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...
1
4012
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
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.