[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 134
  • Last Modified:

Table problem...

I want to create a table in an HTML file starting at document position left=0, top=0. Using the following code when I crete table, it leaves a little space at top, right and left. I want that space to be covered by the table.
In other words
Table Top  =0
Table Left =0
Table width=document width

<TABLE border=1 cellPadding=1 cellSpacing=1 width=75%>
   
    <TR>
        <TD>a</TD>
        <TD></TD>
        <TD></TD></TR>
    <TR>
        <TD>c</TD>
        <TD></TD>
        <TD></TD></TR>
    <TR>
        <TD>c</TD>
        <TD></TD>
        <TD></TD></TR></TABLE>
0
m_adil
Asked:
m_adil
  • 2
1 Solution
 
garrethgCommented:
<BODY MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0">
will get rid of all the document padding on MSIE 4+ and most of the padding on NSN 4+

MARGINWIDTH and MARGINHEIGHT are NSN attributes.
LEFTMARGIN, RIGHTMARGIN, TOPMARGIN and BOTTOMMARGIN are MSIE attributes.

No way to get rid of it for earlier versions of these browsers and and I'm unsure of the behaviour on other types of browsers.

Note:
cellspacing > 0 on NSN will visually make the table seem further from the borders of the document as NSN only renders the table cells.
0
 
m_adilAuthor Commented:
Thanks. it works fine. Plz make it an answer
0
 
garrethgCommented:
as comment
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now