Go Back   CP Web Hosting - reseller hosting > Browser Scripting, HTML, XML and Multimedia > CSS
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-18-2007, 04:45 AM
Senior Member
 
Join Date: May 2007
Posts: 334
Default float problem

my site looks good in IE and in Opera but not at all in Firefox.
I use float for some parts but most is just basic divs under each other.
Reply With Quote
  #2 (permalink)  
Old 06-18-2007, 04:47 AM
Senior Member
 
Join Date: May 2007
Posts: 267
Default

Quote:
Originally Posted by alemcherry View Post
my site looks good in IE and in Opera but not at all in Firefox.
I use float for some parts but most is just basic divs under each other.
try

clear: both;

This will make sure that nothing can be floating next to the footer, thus pushing it down below the other content.

As far as the padding, I believe that the total width = width you specify + padding + margin. So lets say you have a div with the styles width: 10px and padding: 5px, the total width will be 10+5+5=20px.

Now, the problem with the top images probably has to do with the padding and/or margin not being specified somewhere. IE is a lot less picky with this, so you don't always have to specify. But, it's hard for me to tell just by looking at the page.
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:46 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0