By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,612 Members | 1,376 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,612 IT Pros & Developers. It's quick & easy.

Table alignment problem

P: n/a
Hi,

I'm having a problem with a table alignment, it won't top-align.

Background info: above the table, a dozen lines of js code and a bit
of programming code, none has HTML space-taking code like <br> or <p>
etc. Tons of logic inside the TABLE, in and out of TR, but all TRs
are closed properly and have same number of TD, which are also closed
properly. But the table is left aligned and vertically sort of
centered in the page, though the HTML code says, <table valign="top">
or <table valign="top" align="top">.
FYI, HTML version
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,
ua/browser, IE6.0

Is there any way to force the table to be (page) top aligned? CSS,
position? div? span? or ...?

TIA.
Jul 20 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
do***@yahoo.com (DonLi) wrote:
Background info: above the table, a dozen lines of js code and a bit
of programming code, none has HTML space-taking code like <br> or <p>
etc. Tons of logic inside the TABLE, in and out of TR, but all TRs
are closed properly and have same number of TD, which are also closed
properly. But the table is left aligned and vertically sort of
centered in the page, though the HTML code says, <table valign="top">
or <table valign="top" align="top">.
There is no valign attribute for table so that does nothing.
FYI, HTML version
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,
ua/browser, IE6.0

Is there any way to force the table to be (page) top aligned? CSS,
position? div? span? or ...?


Have you removed the default margin on <body>?

Other than that, what's the URL?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2

P: n/a
Steve Pugh <st***@pugh.net> wrote in message news:<87********************************@4ax.com>. ..
do***@yahoo.com (DonLi) wrote:
Background info: above the table, a dozen lines of js code and a bit
of programming code, none has HTML space-taking code like <br> or <p>
etc. Tons of logic inside the TABLE, in and out of TR, but all TRs
are closed properly and have same number of TD, which are also closed
properly. But the table is left aligned and vertically sort of
centered in the page, though the HTML code says, <table valign="top">
or <table valign="top" align="top">.
There is no valign attribute for table so that does nothing.
FYI, HTML version
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,
ua/browser, IE6.0

Is there any way to force the table to be (page) top aligned? CSS,
position? div? span? or ...?


Have you removed the default margin on <body>?

Currently, the BODY tag has only one attribute of bgcolor.
Other than that, what's the URL?

Sorry it's inside a firewall.

Thanks.
Steve

Jul 20 '05 #3

P: n/a
do***@yahoo.com (DonLi) wrote:
Steve Pugh <st***@pugh.net> wrote in message news:<87********************************@4ax.com>. ..

Have you removed the default margin on <body>?


Currently, the BODY tag has only one attribute of bgcolor.


But what about it's styles?
The only attributes of body that affect its margins are out-of-date,
non-standard, browser-specific hacks.
Other than that, what's the URL?


Sorry it's inside a firewall.


Make a copy with sensitive info removed and stick it on some free web
space. Otherwise we can't help you.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #4

P: n/a
OK. Please see below. Thanks.

Steve Pugh <st***@pugh.net> wrote in message news:<n5********************************@4ax.com>. ..
do***@yahoo.com (DonLi) wrote:
Steve Pugh <st***@pugh.net> wrote in message news:<87********************************@4ax.com>. ..

Have you removed the default margin on <body>?
Currently, the BODY tag has only one attribute of bgcolor.


But what about it's styles?
The only attributes of body that affect its margins are out-of-date,
non-standard, browser-specific hacks.

Intended support is for IE6.x (the weird thing is,
background="/imgfolder/image.gif", which I think is standard, is no
longer supported by IE6).

Current style sheet,
http://68.32.63.205/pub/styles.css
Other than that, what's the URL?
Sorry it's inside a firewall.


Make a copy with sensitive info removed and stick it on some free web
space. Otherwise we can't help you.

URL,
http://68.32.63.205/pub/tableProblem.htm

Steve

Jul 20 '05 #5

P: n/a
do***@yahoo.com (DonLi) wrote:
Steve Pugh <st***@pugh.net> wrote in message news:<n5********************************@4ax.com>. ..
do***@yahoo.com (DonLi) wrote:
>Steve Pugh <st***@pugh.net> wrote in message news:<87********************************@4ax.com>. ..
>>
>> Have you removed the default margin on <body>?
>
>Currently, the BODY tag has only one attribute of bgcolor.
But what about it's styles?
The only attributes of body that affect its margins are out-of-date,
non-standard, browser-specific hacks.


Intended support is for IE6.x


The fact that this is an intranet on which all the users use IE6
should have been stated up front. The name of this group contains www
and thus the default context for all discussions is the world wide
web.

To remove the default margin around pages in IE specify
body {margin: 0;} in your CSS. If you only want to remove the top
margin then specify body {margin-top: 0;}.
Note that if you were writing for the www rather than for an intranet
then padding:0; would also be needed as some browsers have default
padding whilst others have default margin.
(the weird thing is,
background="/imgfolder/image.gif", which I think is standard, is no
longer supported by IE6).


As an attribute of <body> ? It's in the HTML 4.01 Transitional
standard, and is supported by IE6, but as with all presentational
matters CSS is more appropriate.

If <body background="/imgfolder/image.gif"> is not working in IE6 then
the first thing to check is that the referenced image is indeed in a
folder called imgfolder that is itself in the root of the site.
>>> Other than that, what's the URL?
>
>Sorry it's inside a firewall.


Make a copy with sensitive info removed and stick it on some free web
space. Otherwise we can't help you.

URL,
http://68.32.63.205/pub/tableProblem.htm


7 minutes and no response, gave up waiting.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #6

P: n/a
Tried your recipe, but my "cooking" still does not "taste" good.
Would you mind if I send it to your private email box? Thanks.

Steve Pugh <st***@pugh.net> wrote in message news:<8h********************************@4ax.com>. ..
do***@yahoo.com (DonLi) wrote:
Steve Pugh <st***@pugh.net> wrote in message news:<n5********************************@4ax.com>. ..
do***@yahoo.com (DonLi) wrote:
>Steve Pugh <st***@pugh.net> wrote in message news:<87********************************@4ax.com>. ..
>>
>> Have you removed the default margin on <body>?
>
>Currently, the BODY tag has only one attribute of bgcolor.

But what about it's styles?
The only attributes of body that affect its margins are out-of-date,
non-standard, browser-specific hacks.


Intended support is for IE6.x


The fact that this is an intranet on which all the users use IE6
should have been stated up front. The name of this group contains www
and thus the default context for all discussions is the world wide
web.

To remove the default margin around pages in IE specify
body {margin: 0;} in your CSS. If you only want to remove the top
margin then specify body {margin-top: 0;}.
Note that if you were writing for the www rather than for an intranet
then padding:0; would also be needed as some browsers have default
padding whilst others have default margin.
(the weird thing is,
background="/imgfolder/image.gif", which I think is standard, is no
longer supported by IE6).


As an attribute of <body> ? It's in the HTML 4.01 Transitional
standard, and is supported by IE6, but as with all presentational
matters CSS is more appropriate.

If <body background="/imgfolder/image.gif"> is not working in IE6 then
the first thing to check is that the referenced image is indeed in a
folder called imgfolder that is itself in the root of the site.
>>> Other than that, what's the URL?
>
>Sorry it's inside a firewall.

Make a copy with sensitive info removed and stick it on some free web
space. Otherwise we can't help you.

URL,
http://68.32.63.205/pub/tableProblem.htm


7 minutes and no response, gave up waiting.

Steve

Jul 20 '05 #7

P: n/a
Oh, and sorry not having stated for IE6 only upfront.

Steve Pugh <st***@pugh.net> wrote in message news:<8h********************************@4ax.com>. ..
do***@yahoo.com (DonLi) wrote:
Steve Pugh <st***@pugh.net> wrote in message news:<n5********************************@4ax.com>. ..
do***@yahoo.com (DonLi) wrote:
>Steve Pugh <st***@pugh.net> wrote in message news:<87********************************@4ax.com>. ..
>>
>> Have you removed the default margin on <body>?
>
>Currently, the BODY tag has only one attribute of bgcolor.

But what about it's styles?
The only attributes of body that affect its margins are out-of-date,
non-standard, browser-specific hacks.


Intended support is for IE6.x


The fact that this is an intranet on which all the users use IE6
should have been stated up front. The name of this group contains www
and thus the default context for all discussions is the world wide
web.

To remove the default margin around pages in IE specify
body {margin: 0;} in your CSS. If you only want to remove the top
margin then specify body {margin-top: 0;}.
Note that if you were writing for the www rather than for an intranet
then padding:0; would also be needed as some browsers have default
padding whilst others have default margin.
(the weird thing is,
background="/imgfolder/image.gif", which I think is standard, is no
longer supported by IE6).


As an attribute of <body> ? It's in the HTML 4.01 Transitional
standard, and is supported by IE6, but as with all presentational
matters CSS is more appropriate.

If <body background="/imgfolder/image.gif"> is not working in IE6 then
the first thing to check is that the referenced image is indeed in a
folder called imgfolder that is itself in the root of the site.
>>> Other than that, what's the URL?
>
>Sorry it's inside a firewall.

Make a copy with sensitive info removed and stick it on some free web
space. Otherwise we can't help you.

URL,
http://68.32.63.205/pub/tableProblem.htm


7 minutes and no response, gave up waiting.

Steve

Jul 20 '05 #8

P: n/a
The site is up, please take a look when you have a chance,
http://68.32.63.205/pub/tableProblem.htm

Thanks.

do***@yahoo.com (DonLi) wrote in message news:<9a**************************@posting.google. com>...
Oh, and sorry not having stated for IE6 only upfront.

Steve Pugh <st***@pugh.net> wrote in message news:<8h********************************@4ax.com>. ..
do***@yahoo.com (DonLi) wrote:
Intended support is for IE6.x

> >URL,
http://68.32.63.205/pub/tableProblem.htm


7 minutes and no response, gave up waiting.

Steve

Jul 20 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.