CSS Rendering in Firefox and Internet Explorer

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
bussinessmenss
Forum Newbie
Posts: 2
Joined: Mon Oct 15, 2007 9:17 am

CSS Rendering in Firefox and Internet Explorer

Post by bussinessmenss »

Hey guys, is it true that the output for the above will be different in both browsers?

Im trying to position a table right all the way to the top using CSS. Somehow, my desired output works in Firefox but not in Internet Explorer. The table doesnt stick all the way to the top edge in IE.

What do u tink i should do?

CSS Code:
table {
position: fixed;
top: -1px;
border-collapse:collapse;
}
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

position:absolute;
top:0;
margin:0;
padding:0;

Might be what you're looking for but the use of position:absolute; could cause other layout headaches. Let me know if that is what you were looking for.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

Did you set the body's margin and padding to zero?
Post Reply