Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 540
  • 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
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

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