Solved

Right margin w/Table in Netscape

Posted on 2000-05-15
8
174 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
 

Expert Comment

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

firelights
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
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 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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now