![]() |
padding and DIV's screwy in FF - go to second post
now i have fixed at least 4 or 5 issues with this using different positioning methods, margins/padding vs each other, etc.
still three of my nested div's are screwy in FF. :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">ive spent 8 hours on this i am mad... |
FOUND IT! changed one of my container div styles to float left. now i still have a problem with the footer div.
:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
Padding and div "problems" in FF tend to be because of the differences in how FF and IE render the box model (i.e. how divs work inside divs). IIRC FF renders it properly but IE (or atleast up to IE 6) don't render it correctly. This unfortunatly means that [if it's a box model problem] how it looks in FF is exactly what it should look like, while IE is making the error.
I can't remember these things off the cuff, but usually it just means fiddling with positions and padding until it looks ok in both, or using a work-around. Try doing a search for pages about the Box Model, there are a few helpful ones out there. You could also try instead of nesting the divs, using positioning to get them into place, it can take a very long time to get it right that way, however. |
Quote:
|
right now the footer STILL wont work....
|
well i got rid of float:left in 6 div's, worked for 5 of the div's LOL
now just the footer. damn thing wont align left in IE. |
How are you trying to align it? Only using padding?
try using positioning instead, for example: :
#footer {position:absolute; top:85%; left:10px; width:80%; margin-bottom:30px;}That's just an example, but something like that is how I'd usually get a footer working properly. It depends on how restrictive your markup is though, if you use lots of absolutes you can give it a fixed position, but if you make it scale with the browser window, then you'll have to fiddle about with percentages until it's right. |
Quote:
|
| All times are GMT -5. The time now is 2:43 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC