[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Spaces

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

656 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