Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
mis aligned footer... why?
Old 03-17-2005, 09:18 AM mis aligned footer... why?
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
Hi all,
Im using the below.
It's supposed to enable a left column with a content area that has a right column.

My problem is the footer.
I think it is in the flow of things however when I add more code to the left column, I am expecting the footer to drop in relation to the content that is entered. This is nt happenning and the flow seems to be lost consequently shunting the footer div to the right of the left colum.

Theres not much code and if someone could look at it it woul dbe really appreciated.

Cheers



Code:
<div>

   

  
  <div style="width:750px;">
   
      <div id="leftColumn" style="width:170px;background-
                                           color:red;float:left;">
	   
      <!-- left side here Want to add divs here but when you do, the footer
             doesnt move? Why? im sure i have a lfow only going on here -->
	  
	 </div>
	  
	  <!-- right side of page before footer -->
	  
              <div style="width:580px;float:right;">
	    <div style="background-color:red;float:left;"></div>
                 <div style="width:160px;background-
                                 color:red;float:right;">right</div>	    
                <p>middle</p>
              </div>
	  
      
  </div>

  <div id="bgfooter" class="footer">FOOTER HERE</div>
</div>
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 03-17-2005, 10:24 AM
Novice Talker

Posts: 11
Trades: 0
To reposition a footer in relation to content you have to set the content above float properties, then assign the footer a clear property to position it beneath.

Example:

#body {
float: left;
margin-left: 40px;
padding: 0px;
}

#footer {
clear: left (or right, or all);
}
grahamd is offline
Reply With Quote
View Public Profile
 
Old 03-17-2005, 10:32 AM
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
this works fine in IE but as soon as I go to firefox, the footer slkips bacvk to the top again.

any more ideas?
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Old 03-17-2005, 10:38 AM
Novice Talker

Posts: 11
Trades: 0
Can't help you mate - worked for me in Firefox! Gotta love temperamental browsers.
grahamd is offline
Reply With Quote
View Public Profile
 
Old 03-17-2005, 10:40 AM
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
ps. thanks for you time.
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Old 03-17-2005, 10:44 AM
drewrockshard's Avatar
Super Talker

Posts: 100
Name: Drew
Location: Garland (Dallas), Texas
Trades: 0
did you try

HTML Code:
#footer {
display:block;
clear:both;
}
__________________
Best Regards,
Drew Decker

Please login or register to view this content. Registration is FREE
drewrockshard is offline
Reply With Quote
View Public Profile
 
Old 03-17-2005, 10:50 AM
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
perhaps you could explain the below then.....
Im clear : all however wish the footer to be dependant on the center div.
In fire fox, this simply isnt happenning.
The only way i can set right is if define clear:right but thats not what want lol

<div style="width:750px;">

<div style="width:170px; float:left;">
<p>left column</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

</div>
<div style="width:580px;float:right">

<div style="float:right;width:420px;background-color:red;">
<p>middle </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp; </p>
</div>

<div style="float:right;width:160px;background-color:blue;">
<p>middle </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp; </p>
</div>


</div>
</div>

</div>
<div style="width:750px; clear:all; height:20px; background-color:#006699;">footer here</div>
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Old 03-17-2005, 10:52 AM
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
aha sort ed it thanks. You go tme there anyway.
Syntax...

clear : both not all. and all works fine.

Thanks very much for you time.
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Old 03-17-2005, 10:53 AM
drewrockshard's Avatar
Super Talker

Posts: 100
Name: Drew
Location: Garland (Dallas), Texas
Trades: 0
are you thanking me or the other guy heh?
__________________
Best Regards,
Drew Decker

Please login or register to view this content. Registration is FREE
drewrockshard is offline
Reply With Quote
View Public Profile
 
Old 03-17-2005, 10:55 AM
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
cheers both of you. youve both helped me get there
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Old 03-17-2005, 10:57 AM
drewrockshard's Avatar
Super Talker

Posts: 100
Name: Drew
Location: Garland (Dallas), Texas
Trades: 0
good, glad to help. thats what its all about right?
__________________
Best Regards,
Drew Decker

Please login or register to view this content. Registration is FREE
drewrockshard is offline
Reply With Quote
View Public Profile
 
Old 03-17-2005, 11:21 AM
Novice Talker

Posts: 11
Trades: 0
No worries
grahamd is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to mis aligned footer... why?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.97600 seconds with 12 queries