Solved

Right margin w/Table in Netscape

Posted on 2000-05-15
8
201 Views
Last Modified: 2010-04-09
Heyas. I'm sure it been asked time and time again, but I can't seem to get a table in Netscape to go the very right of the page. It's got a stupid margin that I just can't get rid of on that side. I'm using CSS on the body to get rid of the left and top margins and would like a similar solution. The answer has to pass the w3c validator.

Would anyone know if there is 'phantom' space on the right hand side of a table that could be causing this or is it really just a margin issue?
0
Comment
Question by:WrrX
8 Comments
 

Expert Comment

by:firelights
ID: 2813291
u mean u want to set a table go to top right hand side in Netscape? would u mind show me the code so that I can help u.

firelights
0
 

Author Comment

by:WrrX
ID: 2813476
<html>
<head>
<title>Thingy</title>
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<table cellpadding="0" cellspacing="0" border="1" width="100%">
   <tr>
      <td width="100%" align="center">
         something
      </td>
   </tr>
</table>
</body>
</html>

I've had to go back to using topmargin="0" etc because of a different problem.  

Anyway, with that code you'll be able to see what it's doing in NS4.

I've come across it many many times before, I've just never had to give a solution on how to get rid of it. It's usually been an acceptable browser bug.
0
 

Expert Comment

by:firelights
ID: 2813705
yes. it's a bug on netscape, it doesn't support width="any%", u should set it as a real number of width u want.

it means:
=======================================

<html>
<head>
<title>Thingy</title>
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<table cellpadding="0" cellspacing="0" border="1" width="900">
   <tr>
      <td align="center">
         something
      </td>
   </tr>
</table>
</body>
</html>

=======================================

I think there is only way to do it. sorry.

maybe some other expert can do it.


firelights




0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 

Expert Comment

by:firelights
ID: 2813726
sorry, wrong comment, netscape just don't support width=100% to the end of right edge.

firelights
0
 
LVL 1

Expert Comment

by:anyanicky
ID: 2817504
I used this and was able to get the character in the very top right hand corner of the screen in Netscape - no right margin.  You could also try <LAYER>

<html>
<body topmargin=0 marginwidth=0 marginheight=0 leftmargin=0>
<ilayer top=0 left=390>
     <layer top=0 left=390 id=test>
       X
     </layer>
</ilayer>
</body>
</html>
0
 

Expert Comment

by:davanita
ID: 2819298
Actually, there is a klugey solution to this problem using tables. You can just set the table WIDTH="103%" (or 104, 105,etc.) and it will bleed right. The problem is that Netscape doesn't deal with this well when the user keeps resizing their window, and that the behavior is a little different in IE. But both of these are surmountable, depending on how picky you are.
0
 

Author Comment

by:WrrX
ID: 2819387
Sorry for the rejection, good answer, but not the right one. The problem there is with scroll bars, and as you say, the user resizing all the time.

firelights confirmed what I thought the answer was going to be, so if you could repost the points are yours.  Thanks.
0
 

Accepted Solution

by:
firelights earned 75 total points
ID: 2819655
thank 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

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

828 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