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

footer positioning at bottom using div, how with Mozilla & Opera!?

Hi everyone.

I'm just making new HTML pages for a site. This time round I've
brushed up on my CSS and trying to use as much of it as possible and
as well as trying to keep it W3C compliant. So far everything's been
going well and the code is currently about 1/3 smaller and running it
through the W3C validator doesn't throw any errors! :-)

I've basically got it how I want it minus one problem. And that is
that I can not seem to figure out how to keep the footer right at the
bottom. It works in IE 6, but I get different underirable effects in
both Opera 7.5 & Mozilla Firefox 0.7. I've tried all CSS options I
could find which I thought might work, but without any luck.

What do I have to do to get it to work (without starting to use
tables)? The page can be seen at:
http://www.sansebastianapartments.com/new/

Thanks in advance for any help.

Regards,

Quintus
Jul 20 '05 #1
6 6562
qs******@terra.es (Quintus Snapper) wrote:
I'm not sure what the answer to your problem is, but I have an
unrelated question: Do you not want to do business with people who are
unable to read tiny print? Your page's text is minuscule, and you have
it set at a fixed size so that IE's feature to increase the size of
the displayed text has no effect.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 20 '05 #2
Quintus Snapper wrote:
I've basically got it how I want it minus one problem. And that is
that I can not seem to figure out how to keep the footer right at the
bottom. It works in IE 6, but I get different underirable effects in
both Opera 7.5 & Mozilla Firefox 0.7. I've tried all CSS options I
could find which I thought might work, but without any luck.


At the bottom of what? The document? The viewport?

The former is easy - use a relatively-positioned footer div after your
relatively-positioned content div, and enclose both in an
absolutely-positioned div if you need to.

The latter is not, and may well not work as you expect.

From the URL you gave, I think you need to use the CSS clear property
to make sure your div doesn't finish before your content.

--
Mark.
Jul 20 '05 #3
Quintus Snapper wrote:
Hi everyone. [snip] I've basically got it how I want it minus one problem. And that is
that I can not seem to figure out how to keep the footer right at the
bottom. It works in IE 6, but I get different underirable effects in
both Opera 7.5 & Mozilla Firefox 0.7. I've tried all CSS options I
could find which I thought might work, but without any luck.

What do I have to do to get it to work (without starting to use
tables)? The page can be seen at:
http://www.sansebastianapartments.com/new/


Here is a quick guess. Perhaps it is because you haven't cleared your float:
left before you position the footer. (I didn't find a clear, which is often a
problem after floats).

You may either need to use clear: left on the footer, or you may need a <div>
before the footer that you clear.

Another puzzle: the text size I see in IE is much larger than I see in
Firefox.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #4
Thanks for your response Mark/Barry.

Thanks a lot, using the clear property on the footer did the job!

Great stuff! :-)

Q

PS I don't have the size difference in Firefox which you described
Barry. Will try to check on anohter machine to see what I get there.
Also taken note of the text being to small.

Mark Tranchant <ma**@tranchant.plus.com> wrote in message news:<3c*********************@stones.force9.net>.. .
Quintus Snapper wrote:
I've basically got it how I want it minus one problem. And that is
that I can not seem to figure out how to keep the footer right at the
bottom. It works in IE 6, but I get different underirable effects in
both Opera 7.5 & Mozilla Firefox 0.7. I've tried all CSS options I
could find which I thought might work, but without any luck.


At the bottom of what? The document? The viewport?

The former is easy - use a relatively-positioned footer div after your
relatively-positioned content div, and enclose both in an
absolutely-positioned div if you need to.

The latter is not, and may well not work as you expect.

From the URL you gave, I think you need to use the CSS clear property
to make sure your div doesn't finish before your content.

Jul 20 '05 #5
Please don't top-post.

Quintus Snapper wrote:
Also taken note of the text being to small.


The solution to that is simple: don't set a font-size for body, table,
tr, td, ul, etc. Set font-size only for headers, to keep them to a
reasonable size, and use percentages for that.

h1 {font-size: 150%}

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #6
Brian wrote:
Quintus Snapper wrote:
Also taken note of the text being to small.


The solution to that is simple: don't set a font-size for body, table,
tr, td, ul, etc. Set font-size only for headers, to keep them to a
reasonable size, and use percentages for that.

h1 {font-size: 150%}


And text can also look too small, or too large, if the author sets the
font-family without changing the font-size. It can result in a clash between
the browser settings and the perceived size of the font used.

See the screen-shots at the following, which show examples of text looking
both larger & smaller than the browser-setting even at 100% font-size.
http://www.barry.pearson.name/articl...comparison.htm

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #7

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

Similar topics

82
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | ...
5
by: Juergen Schulz-Bruessel | last post by:
Hi, I spent quite a while to solve a problem (and noticed during my research that the question was asked quite often, but I didn't find the answer :-( ) We would like to place a footer...
4
by: Gary Finnigan | last post by:
Hi I am having difficulty in placing a footer at the bottom of my page. Can anyone suggest what I'm doing wrong? www.clickatdepaul.org Regards Gary -- Regards
4
by: Stian Lund | last post by:
Hi, I'm trying to create a 2 column layout with a footer on the bottom, where the (fixed-width) sidebar follows the content in the code, while showing on the left hand side of the content. The...
2
by: Tim Charles | last post by:
Hello I am close to finishing my first properly css-friendly site (at least I hope it is), and am looking for some general feedback, plus a specific question answered, if possible. ...
17
by: George Hester | last post by:
http://tinyurl.com/5uj6w The lower middle icon the "block" should not drop down when the mouse is over it. How can I stop that? Also the navigation divs both top and bottom should follow the...
5
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...
17
by: Cerebral Believer | last post by:
Hi all, I would like to know how to get two rows of text links to appear at the bottom of a page. Generally I have been using <div> tags with the id attribute and CSS to place blocks of text,...
2
by: gamernaveen | last post by:
Hi guys , am writing a web page , which a lot of divs. Everything is fine , but I want to make a footer. Am not able to do that. I am using: div.footer { position:fixed; bottom:0px;
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...

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.