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.

CSS Forum


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



Reply
Margin-top not working in FF?
Old 11-22-2008, 03:17 PM Margin-top not working in FF?
Madman340's Avatar
Web Designer

Posts: 569
Name: Jared
Location: Florida
Trades: 1
http://www.cheapcss.com

If you look at the lower image, right above the rounded bottom and links, it doesn't move down with my margin-top there.

Works fine in IE7, but when it comes to Google Chrome and FF, they don't want to work.

I know margin works in both, I have tons of margin's in there besides that one.

You can use the FF plugin "Firebug" to see my xhtml & css.


edit: I know what it's doing, but don't know how to fix it...

It's merging these two margins:

margin: 0 auto;
background-image:url(images/bottomimage.png);
margin-top: 8px;

When it does this, it renders as

margin:8px auto 0;

instead of seperately.


How do I fix this?

Last edited by Madman340; 11-22-2008 at 03:22 PM..
Madman340 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-22-2008, 05:11 PM Re: Margin-top not working in FF?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
margin:8px auto 0;
That's just a shortcut that means exactly what you did above it. Firebug has a tendency to do that when it displays code for margins.

I don't see the problem you're describing. Did you fix it?
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 11-23-2008, 01:53 PM Re: Margin-top not working in FF?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Yep, it's doing exactly what you told it to - first applying margin: 0 auto, then applying the 8px top margin. Why not just write it this way ? margin: 8px auto 0 auto; ??
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-23-2008, 11:22 PM Re: Margin-top not working in FF?
Madman340's Avatar
Web Designer

Posts: 569
Name: Jared
Location: Florida
Trades: 1
Alright I got it, I had to mess with the DIV it was nested in.
Madman340 is offline
Reply With Quote
View Public Profile
 
Old 11-23-2008, 11:28 PM Re: Margin-top not working in FF?
andrei155's Avatar
CEO of BLD Hosting

Posts: 1,514
Name: Andrei
Location: Canada
Trades: 6
I'm under the impression that floating it will also fix the problem.
__________________
No Overselling Guarantee
Now Includes a Free Domain
BLD Hosting -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
andrei155 is offline
Reply With Quote
View Public Profile Visit andrei155's homepage!
 
Old 11-24-2008, 04:39 PM Re: Margin-top not working in FF?
Madman340's Avatar
Web Designer

Posts: 569
Name: Jared
Location: Florida
Trades: 1
Thanks for the tip, if I have any issues with that DIV area, I'll definitely give it a shot.
Madman340 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Margin-top not working in FF?
 

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.41576 seconds with 12 queries