473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Firefox table centering problem

I am having a problem viewing a centered table using Firefox. When the
page is long enough to scroll, the alignment moves slightly to the
left. The alignment doesn't change when I view the page with IE. Here
is the code:

Table 1:
<table width="100%">
<tr><td >
<div align="center">
<table border="1" style="width:800; margin-left:auto;
margin-right:auto;">
<tr><td></td></tr>
</table>
</div>
</td></tr>
</table>
http://www.btothe3.com/b.php

Table 2:
<table width="100%" >
<tr><td >
<div align="center">
<table border="1" style="width:800; margin-left:auto;
margin-right:auto; height:1000px;">
<tr><td></td></tr>
</table>
</div>
</td></tr>
</table>
http://www.btothe3.com/a.php

Am I missing something?

Oct 7 '05 #1
3 4922
be******@gmail.com schreef:
I am having a problem viewing a centered table using Firefox. When the
page is long enough to scroll, the alignment moves slightly to the
left. The alignment doesn't change when I view the page with IE. Here
is the code:

Table 1:
<table width="100%">
<tr><td >
<div align="center">
<table border="1" style="width:800; margin-left:auto;
margin-right:auto;">
<tr><td></td></tr>
</table>
</div>
</td></tr>
</table>
http://www.btothe3.com/b.php

Table 2:
<table width="100%" >
<tr><td >
<div align="center">
<table border="1" style="width:800; margin-left:auto;
margin-right:auto; height:1000px;">
<tr><td></td></tr>
</table>
</div>
</td></tr>
</table>
http://www.btothe3.com/a.php

Am I missing something?


yep, in FF there is no disabled scrollbar when you don't have to scroll. In IE you get a disabled scrollbar
when you don't need to scroll.

Sometimes it's so simple you don't see it ;-)

--
Niek
Oct 7 '05 #2
Quite. Thanks.

Oct 7 '05 #3
be******@gmail.com a écrit :
I am having a problem viewing a centered table using Firefox. When the
page is long enough to scroll, the alignment moves slightly to the
left. The alignment doesn't change when I view the page with IE. Here
is the code:

Table 1:
<table width="100%">
<tr><td >
<div align="center">
<table border="1" style="width:800; margin-left:auto;
margin-right:auto;">
So far, you have absolutely no need, no justification for nesting tables
like you do.
<tr><td></td></tr>
</table>
</div>
</td></tr>
</table>
http://www.btothe3.com/b.php

<table width="800" style="margin-left: auto; margin-right:auto;
empty-cells: show;">
<tr><td>
....

Table 2:
<table width="100%" >
<tr><td >
<div align="center">
<table border="1" style="width:800; margin-left:auto;
margin-right:auto; height:1000px;">
<tr><td></td></tr>
</table>
</div>
</td></tr>
</table>
http://www.btothe3.com/a.php

Am I missing something?

9.6. Why doesn't <TABLE WIDTH="100%"> use the full browser width?
http://www.htmlhelp.com/faq/html/tab...l#table-100pct

Gérard
--
remove blah to email me
Oct 8 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Cezar | last post by:
Hi! I'm styling my table with following CSS code: table.results{ border-collapse:collapse; } table.results td{ border:1px solid #a7a7a7; margin:0;
17
by: autogoor | last post by:
Hi, I am trying firefox and mozilla and found they are not as good as ie in terms of css. For example, here is my css table#maintb{ border : 0px solid; width : 677px; height : 100%; font :...
5
by: Spondishy | last post by:
Hi, I am using the following in my stylesheet to center divs in firefox. html>body { font-size: 13px; } div.centerdiv {
2
by: Joey | last post by:
Hello all, I have been designing a site where the main content is enclosed in one table, and that table needs to be centered (the centering is done by using another container such as a div or...
5
by: BACON | last post by:
I'm just starting the process of reorganising my modest little website and cleaning up all the HTML, and the logical place to begin was with the homepage. I made a simple little ASP.NET control...
2
kraves
by: kraves | last post by:
This is my first venture into simple browser detection. I have a little image script that needs different centering code between Firefox and IE. So this is what I have (it works except as...
7
Frinavale
by: Frinavale | last post by:
Hi there! I don't know why I seem to be the only one with this problem...In Firefox when I'm displaying a table within a <div> and use the align="center" it does not center the table. I'm...
3
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a...
1
by: =?Utf-8?B?ZnJhbmt5?= | last post by:
Hello, I've created a table that has two rows that are span across three columns. The third row has three columns, each with an image. The last row is also span accross three columns. The span...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.