Solved

Spaces

Posted on 1998-06-14
4
239 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

813 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

14 Experts available now in Live!

Get 1:1 Help Now