Solved

XHTML 1.0 Transitional

Posted on 2004-08-06
7
517 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
TripAdvisor Widgets on WordPress Websites 10 195
What is the normal amount of queries 5 80
Create 4 <div> below each other in php 2 69
Adjust the position 3 65
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

830 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