Solved

Spaces

Posted on 1998-06-14
4
243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

688 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