G
Gregor Traven
Hi
This is what happened to me. I was using css to define the body tag. So I
left the tag in html file empty like this: <body>. In my css I defined
margin for this body but if I had for example 20px of margin, the displayed
website in a browser showed 21px I think.Anyways more than 20px as if there
was one px added to those twenty though it wasn't declared anywhere. After a
few tries I found out that if I declare <body topmargin="0"> in html, the 20
px from css remain the 20px that I wanted.
It was the same with tables, if I didn't put cellspacing="0" in html tag,
there was at least 1 px of spacing when displayed in a browser.
My question is: are there such things as default values for tags which would
explain this strange behaviour? I used Internet Explorer and Opera and both
shwed the same.
Thanks for answering
Gregor
This is what happened to me. I was using css to define the body tag. So I
left the tag in html file empty like this: <body>. In my css I defined
margin for this body but if I had for example 20px of margin, the displayed
website in a browser showed 21px I think.Anyways more than 20px as if there
was one px added to those twenty though it wasn't declared anywhere. After a
few tries I found out that if I declare <body topmargin="0"> in html, the 20
px from css remain the 20px that I wanted.
It was the same with tables, if I didn't put cellspacing="0" in html tag,
there was at least 1 px of spacing when displayed in a browser.
My question is: are there such things as default values for tags which would
explain this strange behaviour? I used Internet Explorer and Opera and both
shwed the same.
Thanks for answering
Gregor