Solved

XHTML 1.0 Transitional

Posted on 2004-08-06
7
511 Views
Last Modified: 2013-12-16
Does anyone know why if I define topmargin and leftmargin using XHTML 1.0 Transitional, it doesnt work in Netscape 7.1?
0
Comment
Question by:Nitestarz
  • 3
  • 2
  • 2
7 Comments
 
LVL 10

Expert Comment

by:rockmansattic
ID: 11735634
netscape doenst reconize these..

marginheight="0" marginwidth="0"

rockman
0
 
LVL 3

Expert Comment

by:hyperslug
ID: 11735661
Are you using CSS ?  This worked for me:

<div style="margin-top:20px; margin-left:20px;" >
      test
</div>
0
 

Author Comment

by:Nitestarz
ID: 11735666
Netscape 7.1 seems to run fine with marginheight and marginwidth when I use just HTML
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 10

Expert Comment

by:rockmansattic
ID: 11735695
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
 

Author Comment

by:Nitestarz
ID: 11735743
Still doesnt work, is it something to do with the XHTML Transitional?
0
 
LVL 10

Expert Comment

by:rockmansattic
ID: 11735760
My vote is to go with hyperslug.  this gets around alot of browser issues and is almost globally browser compatible.

Rockman
0
 
LVL 3

Accepted Solution

by:
hyperslug earned 500 total points
ID: 11736124
>  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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now