473,396 Members | 2,052 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 alignment problem

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
8 2723
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Eric | last post by:
Hello, I'm sure your all tired of these "alignment" question, but please endure mine. Question. Simple put: What makes a table sit beside another table, as oppose to going down below it. ...
5
by: Harry | last post by:
CSS Description: Table contains a column of td cells with links. Achieved: 1. Entire link cells highlight when hovered. 2. The entire area of these cells are clickable. Problem:
2
by: Andy Flash | last post by:
Hi. I'd like a little help working out what is going on with what should be a simple alignment problem. I have an outer table with a <td> which has an inner table. The <td> specified as...
2
by: googley | last post by:
I'm starting a new thread for a problem that I ran into.. I'm trying to use STYLE SHEETS/CSS to update multiple table widths across many pages. I did get it working with one small problem that...
3
by: ben.saur | last post by:
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...
7
by: Jef Driesen | last post by:
How can I replace/override the table attributes align, border, cellpadding and cellspacing with css?
7
by: Allie | last post by:
Here's an example of what I'm trying to do: <table> <tr style="text-align:left; font-size:10pt; font-weight:bold"> <!-- I want this word to align to the left --> ' ||CRPT|| ' <!-- I want this...
7
by: TG | last post by:
hi! I am trying to create a sql server table from an excel sheet. Here is the code I have: 'This procedure the xlsx file and dumps it to a table in SQL Server
3
dmjpro
by: dmjpro | last post by:
I think iText commonly used to create or manipulate PDF document in Java. So finally i decided to throw a question over here. For two days i am struggling. I encountered two types of table .....
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?
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.