Link to home
Start Free TrialLog in
Avatar of WrrX
WrrX

asked on

Right margin w/Table in Netscape

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?
Avatar of firelights
firelights

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
Avatar of WrrX

ASKER

<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.
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




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

firelights
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>
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.
Avatar of WrrX

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of firelights
firelights

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial