473,788 Members | 2,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Footer not clearing properly

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
previous divs - I am sure I am missing something very simple.

I have validated the HTML and CSS, and the only thing missing is ALT
attributes, and as this is a prototype, that doesn't seem too important
(and I am fairly sure it can't cause this problem - please correct me if
I am wrong)

I have achieved this before, but I can't work this out now.

Any suggestions?

Ian Watts
Jul 20 '05 #1
7 2107
Els
Ian Watts wrote:
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
previous divs - I am sure I am missing something very simple.

I have validated the HTML and CSS, and the only thing missing is ALT
attributes, and as this is a prototype, that doesn't seem too important
(and I am fairly sure it can't cause this problem - please correct me if
I am wrong)

I have achieved this before, but I can't work this out now.

Any suggestions?


Your #main has position:absolu te and float:right. This
doesn't work well together. Instead of position:absolu te and
left:19%, use margin-left:19%.

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

Jul 20 '05 #2
Els wrote:
Ian Watts wrote:
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
previous divs - I am sure I am missing something very simple.


Your #main has position:absolu te and float:right. This doesn't work well
together. Instead of position:absolu te and left:19%, use margin-left:19%.

Thanks for the prompt reply, and the footer is now doing what I want,
but #main is now starting below the left col, instead of on the same
level (I think that is why I originally used position:absolu te)

A new URL to show this

http://www.ianwatts.info/schoolweb2/
http://www.ianwatts.info/schoolweb2/school.css
Jul 20 '05 #3
Els
Ian Watts wrote:
Els wrote:
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 previous divs - I am sure I am missing something very simple.


Your #main has position:absolu te and float:right. This doesn't work
well together. Instead of position:absolu te and left:19%, use
margin-left:19%.

Thanks for the prompt reply, and the footer is now doing what I want,
but #main is now starting below the left col, instead of on the same
level (I think that is why I originally used position:absolu te)

A new URL to show this

http://www.ianwatts.info/schoolweb2/
http://www.ianwatts.info/schoolweb2/school.css


Since your #main comes after #leftcol, I think you should
make it float:left, not right. Then you don't need the left
margin either. Or you could not float it, and give it a
left-margin. That's what I did on the site in my sig.
That way you can give the width of your menu in ems instead
of percentage, so the links remain easily readable when the
window is narrowed.

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

Jul 20 '05 #4
Els wrote:
Ian Watts wrote:
Els wrote:
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 previous divs - I am sure I am missing something very simple.
Your #main has position:absolu te and float:right. This doesn't work
well together. Instead of position:absolu te and left:19%, use
margin-left:19%.

Thanks for the prompt reply, and the footer is now doing what I want,
but #main is now starting below the left col, instead of on the same
level (I think that is why I originally used position:absolu te)

A new URL to show this

http://www.ianwatts.info/schoolweb2/
http://www.ianwatts.info/schoolweb2/school.css

Since your #main comes after #leftcol, I think you should make it
float:left, not right. Then you don't need the left margin either. Or
you could not float it, and give it a left-margin. That's what I did on
the site in my sig.
That way you can give the width of your menu in ems instead of
percentage, so the links remain easily readable when the window is
narrowed.

Hi, and thanks - both ways work perfectly - I have stuck with not
floating and using left margin.

Many thanks
Jul 20 '05 #5
Ian Watts wrote:
Els wrote:
Ian Watts wrote:
Els wrote:

> 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 previous divs - I am sure I am missing something very simple.

Your #main has position:absolu te and float:right. This doesn't work
well together. Instead of position:absolu te and left:19%, use
margin-left:19%.

Thanks for the prompt reply, and the footer is now doing what I want,
but #main is now starting below the left col, instead of on the same
level (I think that is why I originally used position:absolu te)

A new URL to show this

http://www.ianwatts.info/schoolweb2/
http://www.ianwatts.info/schoolweb2/school.css


Since your #main comes after #leftcol, I think you should make it
float:left, not right. Then you don't need the left margin either. Or
you could not float it, and give it a left-margin. That's what I did
on the site in my sig.
That way you can give the width of your menu in ems instead of
percentage, so the links remain easily readable when the window is
narrowed.

Hi, and thanks - both ways work perfectly - I have stuck with not
floating and using left margin.

Many thanks

I said it worked a bit prematurely - it works in Firefox, my browser of
choice, but not IE6, most peoples browser by default. However, your
first solution works in both (simply float it left)

Thanks again
Jul 20 '05 #6
Els
Ian Watts wrote:
http://www.ianwatts.info/schoolweb2/
http://www.ianwatts.info/schoolweb2/school.css

Since your #main comes after #leftcol, I think you should make it
float:left, not right. Then you don't need the left margin either. Or
you could not float it, and give it a left-margin. That's what I did
on the site in my sig.
That way you can give the width of your menu in ems instead of
percentage, so the links remain easily readable when the window is
narrowed.

both ways work perfectly - I have stuck with not
floating and using left margin.


I said it worked a bit prematurely - it works in Firefox, my browser of
choice, but not IE6, most peoples browser by default. However, your
first solution works in both (simply float it left)


Funny, it works on my site :-)
Here's a simplified version of it.
http://locusmeus.com/html-css/simple.html

Did you perhaps give a width to #main?

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

Jul 20 '05 #7
Els wrote:
Since your #main comes after #leftcol, I think you should make it
float:left, not right. Then you don't need the left margin either.
Or you could not float it, and give it a left-margin. That's what I
did on the site in my sig.
That way you can give the width of your menu in ems instead of
percentage, so the links remain easily readable when the window is
narrowed.

both ways work perfectly - I have stuck with not floating and using
left margin.

I said it worked a bit prematurely - it works in Firefox, my browser
of choice, but not IE6, most peoples browser by default. However, your
first solution works in both (simply float it left)

Funny, it works on my site :-)
Here's a simplified version of it.
http://locusmeus.com/html-css/simple.html

Did you perhaps give a width to #main?

I did indeed - both ways work well now in both browsers - many thanks,
yet again
Jul 20 '05 #8

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

Similar topics

2
2164
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. http://www.ediecast.co.uk/ is the url. The specific question is whether anyone can give me any help getting the footer to actually go at the bottom of the page, rather than staying in the
5
14395
by: Tyler Carver | last post by:
I've tried to get CSS to give me a basic layout where I can place a footer at the bottom of the page and the top of the page I can use for content. I don't however want the footer to pull away from the bottom of the viewport if the top content is small. Also, when I resize the window I want the footer to move with the bottom of the page until I reach the content. Here is an example that works both in IE and Mozilla using tables. I...
0
1421
by: Rob E | last post by:
A problem I am puzzling with: I would like a page with a header (stuck to the top of the browser window, say 50px high), and a footer (stuck to the bottom, also 50px). Between these there is text, which sometimes may be too much for the available space (between header and footer. So I'd like the scroll bar to appear then. I've had it all working at some stage in Firebox, but it would not work properly in IE (due to 'bug' in IE). I know...
5
1930
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...
7
1711
by: bobmct | last post by:
I've been toying with this for many weeks now and it still doesn't work as desired; I'm trying to develop with css compliance. In general my pages are within a container. Withing the container there is a header, a left column menu/nav box, a right box which contains the various pages content; and at the bottome of ALL pages is the close of the container section followed by a footer.
2
2654
by: Paul Neave | last post by:
Hello all. Please try this link for me and let me know what you see: http://www.neave.com/temp/stretch_test.html You should see a green header filling the top of the page, a red footer at the very bottom of the page and a white Flash movie filling the gap in between. You'll need at least Flash Player 7, otherwise it will just show black. It shouldn't scroll, it should act like a framed page but
5
1818
by: Doug Laidlaw | last post by:
I have re-styled my Web site at http://www.douglaidlaw.net/boykett/ . It now uses a CSS stylesheet basically copied from "Beginning CSS Web Development" with a fluid main content area, and passes the validator for HTML 4.01 (except api_sample.html. I tried to get the XHTML out of that, but Kompozer kept putting it back till I gave up. It isn't part of the main stream of the site, more like an aside, and it looks O.K. in XP's Internet...
0
1415
by: Yorian | last post by:
Hey everybody, At the moment I am trying to build a website with a footer at the bottom of the viewport if the amount of text is too small and at the bottom of the page if there is enough text. I'm trying to do this with well formed html and css (as much as possible). On the internet I found this: http://matthewjamestaylor.com/blog/bottom-footer-demo.htm The demo comes from this tutorial:
1
2047
by: donpro | last post by:
https://testbed.odysseyshipping.com/index.php This is driving me nuts. I've spent much time trying to style this page footer but because I cannot set widths using "display: inline". I've tried using floats. Now, for some reason, I can't get my borders to display properly as it seems to nudge to the right for each level of my footer (Firefox and IE). Below is the CSS code.
0
9498
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
10366
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
10175
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
8993
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
7518
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
5399
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
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
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
3675
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.