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
css & firefox/chrome positioning trouble
Old 11-10-2008, 12:56 PM css & firefox/chrome positioning trouble
Junior Talker

Posts: 3
Trades: 0
Hi there,

i've got the following problem in FireFox/IE

I've defined 2 div's NWImage & TopImage, where NWImage contains TopImage.

Now in the CSS TopImage has a top margin of 195px, yet in firefox & chrome, the surrounding NWImage starts at 195 px fromt he top of the page & Topmessage is glued to the top, as opposed to the NWImage startong from the top & TopMessage offsetting 195 px, as it does in IE

Any ideas what i'm doing wrong?

CSS code:
Code:
#NWimage
{
	margin-top: 0px;
	margin-left: auto;
	margin-right: auto;
	height:2319px;
	width:1024px;
	border:0px solid #000;

	
	background-image:url("http://www.icoe.be/NW/Art/Backdrops/NWBackDrop.jpg");
}

#TopMessage
{
	margin-top: 195px;
	margin-left: 4px;
	border: 3 px solid red;
}
Html (www.icoe.be/NW/index.html):

Code:
<div id="NWimage">
		<div id="TopMessage">
			<embed width="923" height="94" src="http://www.icoe.be/NW/Art/Animations/NW%20top%20message.swf">
		</div></div>
Badger1815 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-10-2008, 03:50 PM Re: css & firefox/chrome positioning trouble
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You're getting margin-collapse, which is NOT a bug. Add padding-top: 1px to #NWImage and it will correct.
__________________
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-11-2008, 05:48 PM Re: css & firefox/chrome positioning trouble
Junior Talker

Posts: 3
Trades: 0
thx for the fast reply, that did it

never said it was a BUG
Badger1815 is offline
Reply With Quote
View Public Profile
 
Old 11-11-2008, 09:32 PM Re: css & firefox/chrome positioning trouble
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
never said it was a BUG
I know.. but when I point out 'margin-collapse' people often think it's a bug, but it's not, it's actually correct behavior.
__________________
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
 
Reply     « Reply to css & firefox/chrome positioning trouble
 

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