Solved

Right margin w/Table in Netscape

Posted on 2000-05-15
8
204 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

This article discusses four methods for overlaying images in a container on a web page
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
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 tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

730 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