table width?

R

roN

Hi,

I wanna show a table in a javascrpt window(document.open).
I defined it like:<table width="200" border="0" cellspacing="0"
cellpadding="0"> but why isn't its width 200? it's width is much wider than
200. why the hell?
Thank you!
 
R

rf

roN said:
I wanna show a table in a javascrpt window(document.open).

Er, why?
I defined it like:<table width="200" border="0" cellspacing="0"
cellpadding="0"> but why isn't its width 200? it's width is much wider than
200. why the hell?

What is wider than 200? The table or the spurious window you have opened?

Cheers
Richard.
 
R

rf

roN
Erm, why not?

My point is that you already have a browser window at your disposal. Why do
you feel the need to inflict another one on me? Not that I will see it
anyway, my popup blocker will stop it from opening.
Just to show the content a bit arranged.

Ah, eerm, this does not scan. What do you mean by the content a bit
arranged?
The table.

OK. Now a URL is now required.

Cheers
Richard.
 
M

Mark Parnell

Previously in alt.html said:
I wanna show a table

Is it actually tabular data?
in a javascrpt window(document.open).

Please don't do that. One browser window is sufficient.
I defined it like:<table width="200" border="0" cellspacing="0"
cellpadding="0"> but why isn't its width 200? it's width is much wider than
200. why the hell?

Probably because the content is wider than 200px. As Richard said, a URL
would be required for further investigation.

Things like width should be specified in your CSS anyway, not the HTML.
 
?

=?ISO-8859-1?Q?G=E9rard_Talbot?=

roN wrote :
Hi,

I wanna show a table in a javascrpt window(document.open).
I defined it like:<table width="200" border="0" cellspacing="0"
cellpadding="0"> but why isn't its width 200? it's width is much wider than
200. why the hell?
Thank you!

I agree with everyone who answered you so far.
1- You need to provide more info, in particular, specific info on what
you are trying to do (web page design, website context, etc). Who
knows... you may be looking to normally insert a <div> into a standard
page instead of dynamically DOM-inserting a table into a secondary
window. Keep flexible and open-minded: you should not assume your
solution is the best.
2- Tables should be used for tabular data. Otherwise, it cause
accessibility burden and difficulties. Tables used for non-tabular data
is not good semantic markup.
3- An url where you use such table would answer a lot of question.
Posting code is not convenient and can not provide answers to questions
of various nature.

Gérard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top