?
Solved

Spaces

Posted on 1998-06-14
4
Medium Priority
?
244 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 60 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Find out what you should include to make the best professional email signature for your organization.
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…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

741 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