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

Floating and not floating

I might be being silly here.

On my links page I've got a whole load of floating boxes, which I'm
really pleased with.

But then I want the footer to be *below* them.
On my current site (http://www.vowleyfarm.co.uk/CommunityLinks.htm)
I've cheated by putting the footer in a floating box as well, but now
I'm moving to using a CMS I would like not to hack my page template
in this way.

Another way would be to have the "correct" number of <br />'s in the
div with the floating boxes in, but you'd probably have a go at me
for that too.

Can it be done, and how if so?

TIA
Mark

Apr 13 '06 #1
6 1500
jim
Mark, you might give this a try:
<div id="footer" style="position:absolute; left:0px; bottom:0px;
height:55px; width:90%">footer text here</div>

But i think i recall firefox having a problem with that. in which case
I've also done this by applying a percentage value to the top property
of the absolute positioning. You have to play with it a bit to get it
just right, but the following may work for you:
<div id="footer" style="position:absolute; left:0px; top:95%;
height:55px; width:90%;">footer text here</div>

If those two don't work, then you might try floating your footer and
use clear:both within your footer float. Haven't tested that, but it
may be worth a try.

-Jim

Apr 13 '06 #2
jim
MARK-- I JUST TESTED MY PRIOR SUGGESTIONS AND THE
[ FLOAT:LEFT; CLEAR:BOTH ]
SEEMS TO DO IT.
Using your code, here's the solution which works in msie and firefox:

<div id="bottomBar" style="float:left; clear:both; margin:0px;
width:97%; height:75px; background-color:green; color:white;">your
content here </div>

*** PUT THE ABOVE DIV ON ITS OWN (IE: NOT WITHIN THE OTHER DIV ON YOUR
PAGE LIKE IT IS NOW) and at the end of your page after all the other
float code.

Apr 13 '06 #3
On Thu, 13 Apr 2006 11:19:23 +0200, Usenet <Ma**@dont.spamme.invalid>
wrote:
I might be being silly here.

On my links page I've got a whole load of floating boxes, which I'm
really pleased with.

But then I want the footer to be *below* them. Can it be done, and how if so?


Did you try

#footer { clear:both; }
--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
Apr 13 '06 #4
Barbara de Zoete wrote:
On Thu, 13 Apr 2006 11:19:23 +0200, Usenet <Ma**@dont.spamme.invalid>
wrote:
I might be being silly here.

On my links page I've got a whole load of floating boxes, which I'm
really pleased with.

But then I want the footer to be *below* them.

Can it be done, and how if so?


Did you try

#footer { clear:both; }


As a caution:

http://www.positioniseverything.net/.../peekaboo.html
Apr 13 '06 #5
Thanks both Jim & Barbara,

that clears it up on that page.

Unfortunately my design has been moved on. I have now added another
main div in the page, to offer a main text area with an alternate
colour and boundary. This version, which is still under development,
is at http://ccgi.vowleyfarm.plus.com/NewVF/index.php?id=87 (yeah, I
know, I need to get the nice html pagenames back).

The footer still stays very nicely at the bottom (thanks!), but the
coloured div clearly doesn't include the floating boxes any more :-(

I'm playing with it, but any suggestions, as always, very gratefully
received.

Mark Stanton
One small step for mankind...

Apr 15 '06 #6
> As a caution:
http://www.positioniseverything.net/.../peekaboo.html


What a complicated world. Thanks to Mr Gates for making it ever more so
8-(

Thanks Tony
Mark Stanton
One small step for mankind...
Apr 15 '06 #7

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

Similar topics

31
by: JS | last post by:
We have the same floating point intensive C++ program that runs on Windows on Intel chip and on Sun Solaris on SPARC chips. The program reads the exactly the same input files on the two platforms....
5
by: Anton Noll | last post by:
We are using Visual Studio 2003.NET (C++) for the development of our software in the fields digital signal processing and numerical acoustics. One of our programs was working correctly if we are...
687
by: cody | last post by:
no this is no trollposting and please don't get it wrong but iam very curious why people still use C instead of other languages especially C++. i heard people say C++ is slower than C but i can't...
7
by: Vinoth | last post by:
I'm working in an ARM (ARM9) system which does not have Floating point co-processor or Floating point libraries. But it does support long long int (64 bits). Can you provide some link that would...
15
by: michael.mcgarry | last post by:
Hi, I have a question about floating point precision in C. What is the minimum distinguishable difference between 2 floating point numbers? Does this differ for various computers? Is this...
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
4
by: jacob navia | last post by:
Hi people I continue to work in the tutorial for lcc-win32, and started to try to explain the floating point flags. Here is the relevant part of the tutorial. Since it is a difficult part, I...
32
by: ma740988 | last post by:
template <class T> inline bool isEqual( const T& a, const T& b, const T epsilon = std::numeric_limits<T>::epsilon() ) { const T diff = a - b; return ( diff <= epsilon ) && ( diff >= -epsilon );...
39
by: rembremading | last post by:
Hi all! The following piece of code has (for me) completely unexpected behaviour. (I compile it with gcc-Version 4.0.3) Something goes wrong with the integer to float conversion. Maybe somebody...
6
by: Jeremy | last post by:
I've got a floating div which becomes visible when a link is clicked. I want the div to be hidden when the user clicks anywhere on the page except for whithin the div. What is the best way to do...
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?
0
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...
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
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.