473,657 Members | 2,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Positioning a DIV at bottom of page

Is it possible to position a DIV so that it will always be at the
bottom of the screen without having to use absolute positioning or
using the background image workaround?
Thank you!

Jul 20 '05 #1
12 101951
On Wed, 12 May 2004 23:00:47 -0500, John Smith
<3r*********@sn eakemail.com> wrote:
Is it possible to position a DIV so that it will always be at the
bottom of the screen without having to use absolute positioning or
using the background image workaround?


Kind of. Microsoft won't support it, but it exists. Write to Microsoft and
ask them to fix IE6 to support position: fixed; - if enough people do it,
they might...
Jul 20 '05 #2
On Thu, 13 May 2004 00:37:56 -0400, Neal <ne*****@yahoo. com> wrote:

:On Wed, 12 May 2004 23:00:47 -0500, John Smith
:<3r*********@s neakemail.com> wrote:
:
:> Is it possible to position a DIV so that it will always be at the
:> bottom of the screen without having to use absolute positioning or
:> using the background image workaround?
:
:Kind of. Microsoft won't support it, but it exists. Write to Microsoft and
:ask them to fix IE6 to support position: fixed; - if enough people do it,
:they might...
How is this different that position: absolute? It looks like I would
still have to set a top value....

Jul 20 '05 #3
On Wed, 12 May 2004 23:42:26 -0500, John Smith
<3r*********@sn eakemail.com> wrote:
On Thu, 13 May 2004 00:37:56 -0400, Neal <ne*****@yahoo. com> wrote:

:On Wed, 12 May 2004 23:00:47 -0500, John Smith
:<3r*********@s neakemail.com> wrote:
:
:> Is it possible to position a DIV so that it will always be at the
:> bottom of the screen without having to use absolute positioning or
:> using the background image workaround?
:
:Kind of. Microsoft won't support it, but it exists. Write to Microsoft
and
:ask them to fix IE6 to support position: fixed; - if enough people do
it,
:they might...
How is this different that position: absolute? It looks like I would
still have to set a top value....


Nope. position: absolute; bottom: 0; should put the element at the bottom
of the page, whether above the fold or below, and it scrolls with the
page. Fixed won't scroll, it stays put, and using bottom: 0; it serves as
a "footer" at the bottom of the viewport.
Jul 20 '05 #4

"John Smith" <3r*********@sn eakemail.com> wrote in message
news:si******** *************** *********@4ax.c om...
Is it possible to position a DIV so that it will always be at the
bottom of the screen without having to use absolute positioning or
using the background image workaround?
Thank you!


Set division1 to a fixed height larger than you'll ever need.
Set division2 directly below it.
do all of your layout work in division 1.

<division1>
<division3>ya da yada</division3>
<division4>qwer ty</division4>
</division1>
<division2>bl ah blah</division2>


Jul 20 '05 #5
On Wed, 12 May 2004 23:38:47 -0500, Richard <An*******@127. 001> wrote:

"John Smith" <3r*********@sn eakemail.com> wrote in message
news:si******** *************** *********@4ax.c om...
Is it possible to position a DIV so that it will always be at the
bottom of the screen without having to use absolute positioning or
using the background image workaround?
Thank you!


Set division1 to a fixed height larger than you'll ever need.
Set division2 directly below it.
do all of your layout work in division 1.

<division1>
<division3>ya da yada</division3>
<division4>qwer ty</division4>
</division1>
<division2>bl ah blah</division2>


How will that put it at the bottom of the screen? It might very well not
reach the bottom of the screen, or be lower so I have to scroll to get to
it.
Jul 20 '05 #6
Neal wrote:
On Wed, 12 May 2004 23:00:47 -0500, John Smith
<3r*********@sn eakemail.com> wrote:
Is it possible to position a DIV so that it will always be at the
bottom of the screen without having to use absolute positioning or
using the background image workaround?


Kind of. Microsoft won't support it, but it exists. Write to
Microsoft and ask them to fix IE6 to support position: fixed; - if
enough people do it, they might...


True. But there are some work-arounds, for IE's lack of support for {
position: fixed }. There are separate work-arounds for IE 5 & IE 6. I think I
read about them here.

I used the following extra CSS for one page. I used a conditional comment in
the head block so that only IE saw this. It overrode the "fixed" value of one
of the rules seen by other browsers. It only works for certain of the
elements, I think. (And is *not* a substitute for IE doing things right!)

html {
overflow: hidden;
}
body {
height: 100%;
overflow: auto;
}
..someclass {
position: absolute;
}

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #7
On Thu, 13 May 2004 00:56:51 -0400, Neal <ne*****@yahoo. com> wrote:

:On Wed, 12 May 2004 23:42:26 -0500, John Smith
:<3r*********@s neakemail.com> wrote:
:
:> On Thu, 13 May 2004 00:37:56 -0400, Neal <ne*****@yahoo. com> wrote:
:>
:> :On Wed, 12 May 2004 23:00:47 -0500, John Smith
:> :<3r*********@s neakemail.com> wrote:
:> :
:> :> Is it possible to position a DIV so that it will always be at the
:> :> bottom of the screen without having to use absolute positioning or
:> :> using the background image workaround?
:> :
:> :Kind of. Microsoft won't support it, but it exists. Write to Microsoft
:> and
:> :ask them to fix IE6 to support position: fixed; - if enough people do
:> it,
:> :they might...
:>
:>
:> How is this different that position: absolute? It looks like I would
:> still have to set a top value....
:
:Nope. position: absolute; bottom: 0; should put the element at the bottom
:of the page, whether above the fold or below, and it scrolls with the
:page. Fixed won't scroll, it stays put, and using bottom: 0; it serves as
:a "footer" at the bottom of the viewport.

This works great expect when the page scrolls. Is there a workaround
for that?

Jul 20 '05 #8
"Barry Pearson" <ne**@childsupp ortanalysis.co. uk> writes:
Neal wrote: I used the following extra CSS for one page. I used a conditional
comment in the head block so that only IE saw this.


Neal,

I understand your general point, but wondered about "conditiona l
comment." Don't EI and Mozilla respond to a comment in the header
style the same way?

--
Haines Brown

Jul 20 '05 #9
Els
Haines Brown wrote:
"Barry Pearson" <ne**@childsupp ortanalysis.co. uk> writes:
Neal wrote:

I used the following extra CSS for one page. I used a conditional
comment in the head block so that only IE saw this.


Neal,

I understand your general point, but wondered about "conditiona l
comment." Don't EI and Mozilla respond to a comment in the header
style the same way?


It's Barry who mentioned the conditional comment, not Neal ;-)

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

Jul 20 '05 #10

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

Similar topics

2
2317
by: Jon Haakon | last post by:
Hi, I'm developing a websolution using ASP and DHTML technology that's running on a MS IIS webserver. My solution is frame based with a toolbar on top, a hidden frame for scripts in the middel (all actions run here), and on bottom html pages will be shown. The bottom page contains forms witch is developed with a 3ed party design tool from Acrobat and stored as HTML. It wouldn't be any problem storing these files as html. But the main...
1
11863
by: Stan Brown | last post by:
On every page I have a <p ID="URhere"> that appears only when you print. (It's "display:none" in the general style sheet.) It would be nice if I could suggest that the browser print it at the bottom of the last page,(*) rather than immediately after the last text. Example: http://oakroadsystems.com/genl/unice.htm I read the text on "paged media" <http://www.w3.org/TR/REC- CSS2/page.html> and I don't see any way to specify this. Am I...
2
4466
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...
3
2100
by: Jonah Bishop | last post by:
I have a strange problem that I'm hoping someone can help me with. I want a footer at the bottom of my simple HTML page to span the entire width of the page. I'm not using floats, columns or any other such complex things. Here is the ridiculously simple markup I'm using: <body> <div id="footer">A Simple Footer Test</div> </body>
1
2456
by: Frances Del Rio | last post by:
don't know if I'll succeed, have spent a lot of time already trying to figure this out: I would like to position a footer (co. name, address, etc..) at the bottom of browser page, in such a way that it's always at the bottom no matter how high the screen is ('clientHeight' in browser model) and that stays there when user scrolls.. in the "official" CSS specif's (http://www.w3.org/TR/REC-CSS2/visuren.html#fixed-positioning) I found this:...
0
1240
by: chris ciotti | last post by:
Hi - The following page: http://www.geocities.com/chris_ciotti/Holding/site-template-sliced.html was generated with Photoshop CS and uses CSS for positioning. The page validates (unfortunately, you can't validate it from the geocities server as they paste in a bunch of crud which hoses the validation) but the top row of buttons (home, about etc) do not show up in IE 6, they are about 6px too far down. I'm not really sure why this is as...
0
1116
by: chris ciotti | last post by:
Hi - Sorry for the crosspost. The following page: http://www.geocities.com/chris_ciotti/Holding/site-template-sliced.html was generated with Photoshop CS and uses CSS for positioning. The page validates (unfortunately, you can't validate it from the geocities server as they paste in a bunch of crud which hoses the validation) but the top row of buttons (home, about etc) do not show up in IE 6, they are about 6px too far
1
2666
by: Edward | last post by:
I created a simple CSS layout (code and example below) for bloggin/writing but ran into five issues that I need help with: 1. How do I get rid of the right-margin red line on the last three right-boxes in Internet Explorer? 2. How can I put a 4px margin BETWEEN the right-boxes, "border-top: 4px" didn't do it and if I put in a "margin-top: 4px;" it shows the red underneath instead of the brown background graphic.
4
29376
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")
6
1505
by: sooshi | last post by:
Hi all, The height of my page needs to be flexible as the page contains columns with lists which can vary in length. I also have a footer which needs to be stuck to the bottom. I managed to do all of the above. My problem now is the positioning of the columns. With relative positioning, the columns appear staggered with column2 starting lower than column1. If I use {float:left}, the two columns stay next to each other which is good...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8740
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
8617
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
7353
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
6176
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
4173
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
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
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
1733
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.