CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 1st, 2004, 09:21 AM
Fuente Fuente is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 193 Fuente User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 37 m 37 sec
Reputation Power: 7
CSS - Footer

I've created a web page using this CSS layout code:

Code:
<style type="text/css">
	
	body {
		text-align:center;
		}
	
	#frame {
		width:650px;
		margin-right:auto;
		margin-left:auto;
		margin-top:10px;
		padding:0px;
		text-align:left;
		}
		
	#contentmain {
		width:220px;
		padding:0px;
		float:left;
		background:#fff;
		}
	
	#contentmenu {
		width:430px;
		padding:0px;
		float:left;
		background:#eee;
		}
	
	#contentheader {
		background:#fff
		}
	
</style>


I want to include some 'contentfooter' code, but I'm not sure how to make sure the code clears both the 'contentmain' and 'contentmenu' columns and is posted below both of them?

Can anyone tell me how I can do this?

Thanks.

Reply With Quote
  #2  
Old January 1st, 2004, 09:25 AM
nolachrymose nolachrymose is offline
The Forest
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 321 nolachrymose User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Code:
clear: both;


Hope that helps!

Happy coding!

Reply With Quote
  #3  
Old January 1st, 2004, 11:10 AM
Fuente Fuente is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 193 Fuente User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 37 m 37 sec
Reputation Power: 7
Thank you nolachrymose!

I'm having a problem though...

When I tested the page, the 'contentmenu' section was being displayed directly below the 'contentmain' section. So I changed the "float:left;" code to "float:right;", and while it's now on the right side of the page, it's still being displayed below the 'contentmenu' section.

Can you tell me what I've done wrong?

Thanks.

Reply With Quote
  #4  
Old January 1st, 2004, 12:29 PM
nolachrymose nolachrymose is offline
The Forest
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 321 nolachrymose User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Did you put set the "clear" property to "both" on the footer, or on contentmenu and contentmain? If you set it to contentmenu and contentmain, you need to get rid of that and set the property for contentfooter.

Happy coding!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS - Footer


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT