473,396 Members | 2,024 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,396 software developers and data experts.

Table has different widths under IE, Firefox and Opera...why!?

Hi All,

I am encountering this problem while doing some cross-browser testing.
The table in IE looks fine, in Firefox it goes all the way to the edge
of the screen and in Opera it is going off the screen (way too big). I
have the table width set as 160% (I know its high, but I was playing
around with it)

Here is a sample page, it doesnt look as good as it should and I'm
sorry for having to use geocities, but the table is there and you will
see the effect I speak of

http://www.geocities.com/aal_jamal/rptStandard.htm

Thanks,

Ammar

Jan 19 '07 #1
7 5001

al******@gmail.com wrote:
I am encountering this problem while doing some cross-browser testing.
Why bother, until after you've validated the page?
The table in IE looks fine, in Firefox it goes all the way to the edge
of the screen and in Opera it is going off the screen (way too big).
Which doctype? Why are you even trying to control widths accurately
when you're not using an appropriate doctype?
http://www.geocities.com/aal_jamal/rptStandard.htm
How do you expect any accurate control of width to work when you're
using geocities ?
have the table width set as 160% (I know its high, but I was playing
around with it)
160% of _what_? Think about that for a minute.

Jan 19 '07 #2

Andy Dingley wrote:
al******@gmail.com wrote:
I am encountering this problem while doing some cross-browser testing.

Why bother, until after you've validated the page?
It is valid. If I take my source (not the one on geocities) I get a
validated page
Result: Passed validation
File: upload://Form Submission
Encoding: utf-8
Doctype: HTML 4.01 Transitional
>
Which doctype? Why are you even trying to control widths accurately
when you're not using an appropriate doctype?
Doctype is there (and mentioned above)
>
How do you expect any accurate control of width to work when you're
using geocities ?
That should have no effect. The table is looking the same whether its
on my intranet or on geocities all that is missing is some images
>
160% of _what_? Think about that for a minute.
I believe its the browser window...I get the same effect if I use an
absolute number

Jan 19 '07 #3
al******@gmail.com wrote:
It is valid. If I take my source (not the one on geocities) I get a
validated page
So why are you asking us about a page we can't see and showing us a
different one, on a host that makes it impossible to do competent HTML
development? You might as well ask us to debug a MySpace layout!

Jan 19 '07 #4
Rik
al******@gmail.com wrote:
Hi All,

I am encountering this problem while doing some cross-browser testing.
The table in IE looks fine, in Firefox it goes all the way to the edge
of the screen and in Opera it is going off the screen (way too big). I
have the table width set as 160% (I know its high, but I was playing
around with it)

Here is a sample page, it doesnt look as good as it should and I'm
sorry for having to use geocities, but the table is there and you will
see the effect I speak of

http://www.geocities.com/aal_jamal/rptStandard.htm
I'm not going to check all that HTML, certainly because it doesn't
validate. Just a quick reminder that for a percentage to work, the width of
a parent element has to be defined. If that width is also a percentage,
then it's parent etc. If one is not defined, all bets are off and browsers
have to guess what you want, and do so quite differently.
To get a quick answer and make it easy for us, please use this guide:
http://www.positioniseverything.net/...s/mys-bug.html

In short: create a minimal test-case, without all the markup that does not
affect the behaviour you've got questions about.
--
Rik Wasmus
Jan 19 '07 #5

Andy Dingley wrote:
So why are you asking us about a page we can't see and showing us a
different one, on a host that makes it impossible to do competent HTML
development? You might as well ask us to debug a MySpace layout!
The effect I am talking about is the same across both pages, its not a
validation issue its obviously a sizing issue

thanks anyway...

I fixed it myself

Jan 19 '07 #6

Rik wrote:
To get a quick answer and make it easy for us, please use this guide:
http://www.positioniseverything.net/...s/mys-bug.html

In short: create a minimal test-case, without all the markup that does not
affect the behaviour you've got questions about.
--
Thanks Rik, I've gotten flamed many times, yet nobody bothered to post
a link on how to post a test case...they just say the same things over
and over and I end up fixing it myself

Jan 19 '07 #7
Dan

al******@gmail.com wrote:
I am encountering this problem while doing some cross-browser testing.
The table in IE looks fine, in Firefox it goes all the way to the edge
of the screen and in Opera it is going off the screen (way too big). I
have the table width set as 160% (I know its high, but I was playing
around with it)
>From that description it sounds like Opera is the browser getting it
right; if you say the table should be "160%", that should mean the full
width of its parent element (the entire window if that's what the
parent is) plus 60%.

--
Dan

Jan 20 '07 #8

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

Similar topics

13
by: Eric Osman | last post by:
I know that if I want all my table entries to be of height 25, I can put this in my style file: table tr td {height:25} But what if I want the above to only apply to a particular table ? ...
10
by: john T | last post by:
Is there anyway to vertically center a html table using css in such a way it does not alter the html table. When I tryied it just screws up.
3
by: Steve Sabljak | last post by:
I seem to having a little trouble getting a table to display correctly in both msie and firefox. I want to set the table and column widths in pixels, and have some cell padding too. The table...
4
by: N. Demos | last post by:
The following code renders as intended in IE (A TABLE, with cells of fixed width and height, inside of a DIV with fixed width and height and overflow set to hidden.) In Firefox, the table cells...
25
by: Michael Schuerig | last post by:
I'm trying to do something seemingly very simple, but it's brought me close to crushing my head on the keyboard. All I want is a table where the head row is fixed and the body columns below are...
11
by: Norman L. DeForest | last post by:
Am I misunderstanding the CSS specifications or is Firefox (version 1.0.6) (and Opera) doing the wrong thing? It appears that Firefox 1.0.6 includes the border in width calculations for tables...
11
by: Hymer | last post by:
Hello, I have a small table that works fine in IE6 but does not render at all in Opera or Firefox. Can anyone see what might be needed to get this to work in all three browsers? The code...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
2
by: gentsquash | last post by:
(If my question is too much CSS, please point me elsewhere and I'll post there. My tests have been on Firefox on MacOS, and I'd settle for just getting this to work there.) I'm writing a game...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.