• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 536
  • Last Modified:

XHTML 1.0 Transitional

Does anyone know why if I define topmargin and leftmargin using XHTML 1.0 Transitional, it doesnt work in Netscape 7.1?
0
Nitestarz
Asked:
Nitestarz
  • 3
  • 2
  • 2
1 Solution
 
rockmansatticCommented:
netscape doenst reconize these..

marginheight="0" marginwidth="0"

rockman
0
 
hyperslugCommented:
Are you using CSS ?  This worked for me:

<div style="margin-top:20px; margin-left:20px;" >
      test
</div>
0
 
NitestarzAuthor Commented:
Netscape 7.1 seems to run fine with marginheight and marginwidth when I use just HTML
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
rockmansatticCommented:
What I ment to say (type) is that for you to use these in the body tag, you need to use all four to work on IE and Netscape.  marginheight="0" marginwidth="0" topmargin="0" leftmargin="0"

Sorry
Rockman
0
 
NitestarzAuthor Commented:
Still doesnt work, is it something to do with the XHTML Transitional?
0
 
rockmansatticCommented:
My vote is to go with hyperslug.  this gets around alot of browser issues and is almost globally browser compatible.

Rockman
0
 
hyperslugCommented:
>  Still doesnt work, is it something to do with the XHTML Transitional?

Yes it is.  topmargin is not in the spec for XHTML and won't work.  Use regular HTML if you wish to continue using topmargin.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now