?
Solved

Right margin w/Table in Netscape

Posted on 2000-05-15
8
Medium Priority
?
220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: 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 225 total points
ID: 2819655
thank you! :)
0

Featured Post

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!

Question has a verified solution.

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

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.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

765 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