Solved

Spaces

Posted on 1998-06-14
4
230 Views
Last Modified: 2010-04-09
dear sir,

l would like to use the netscape composer to do my html jobs, when l tried to made a table at left top corner, it will left a small space before the table. how to make it lost ? if you dont really understand my question, below is my code, copy all into notepad and save it as html file then open it with the netscape broswer. you will see the small spaces before the top and left of the table.

<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (Win95; I) [Netscape]">
   <TITLE>test</TITLE>
</HEAD>
<BODY>
<TABLE BORDER CELLPADDING=0 COLS=1 WIDTH="50%" >
<TR>
<TD>you can see the small spaces before the top and left of the table now
! how to make it lost ?</TD>
</TR>
</TABLE>
 
</BODY>
</HTML>
0
Comment
Question by:e_aks
4 Comments
 
LVL 1

Accepted Solution

by:
TAMC earned 30 total points
ID: 1844191
In your BODY tag set the attributes TOPMARGIN and LEFTMARGIN equal to 0 for example:

<BODY TOPMARGIN="0" LEFTMARGIN="0">
0
 

Author Comment

by:e_aks
ID: 1844192
no, it doesn't seem to works.
0
 

Expert Comment

by:Charmaine041198
ID: 1844193
e_aks, if you remove the "COLS=1" parameter within the Table tag, the space above the table will disappear. The code is as follows:

<HTML>
<HEAD>
   <TITLE>Try this!</TITLE>
</HEAD>
<BODY>

<TABLE BORDER CELLSPACING=0 CELLPADDING=0 WIDTH="50%" >
<TR>
<TD>Is this OK?</TD>
</TR>
</TABLE>

</BODY>
</HTML>

There will be 0.5cm border spacing between the table and top and side of the browser window and I think that's the specified layout in Netscape. Hope this helps. If this answers your question, I'll post it as an answer.
0
 
LVL 1

Expert Comment

by:ris
ID: 1844195
I have experienced this problem with netscape composer also.  The problem as I see it is that when composer renders the page, it alters it quite a bit as well.  I'm sure you've seen all the &nbsp; that it puts everywhere.  Well, part if that involves putting one blank line before every table.  Sometimes it actually does something like this to the code:

you have:
<TABLE BORDER CELLSPACING=0 CELLPADDING=0 WIDTH="50%" >

and it changes it to
&nbsp
<TABLE BORDER CELLSPACING=0 CELLPADDING=0 WIDTH="50%" >

the non-breaking space on the previous line forces a line break for some reason on some browsers because of the inconsistency involved in tables across browsers.

Something I have found is that netscape composer and navigator render web pages differently for some things.  Often when I am editing tables in composer it shows those extra blank lines, but when I click preview and it shows the page in the normal browser, the extra blank lines are gone and it looks much better.

What I do to make sure my pages look good is to rough them out in composer and then edit the code in notepad (or actually I use DANA which is pretty close to the same thing) and view it in a real browser.  Doing "edit HTML source" from netscape composer will not work because the composer will revoke the changes you've made to your code.

Hope this clarifies some things for you.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Hover Gone 16 31
Ajax control editor 4 35
(URGENT) Help HTML and CSS Resizing Images 2 20
Create html table using xsl 8 0
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

762 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

16 Experts available now in Live!

Get 1:1 Help Now