472,328 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

How can control table TH's width

Hello,
<TABLE BORDER=1 CELLSPACING=0>
<TR>
<TH>
<style="WIDTH=10">
ABC
</TH>
<TH>
<style="WIDTH=500">
DEF
</TH>
</TR>
</TABLE>

But ABC and DEF's width is same.I want control TH's width
Thank you

Jul 19 '05 #1
7 10036
<th width=60%>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Jack <si*****************@noyahoo.co.jp> wrote in message
news:uu**************@TK2MSFTNGP12.phx.gbl...
Hello,
<TABLE BORDER=1 CELLSPACING=0>
<TR>
<TH>
<style="WIDTH=10">
ABC
</TH>
<TH>
<style="WIDTH=500">
DEF
</TH>
</TR>
</TABLE>

But ABC and DEF's width is same.I want control TH's width
Thank you

Jul 19 '05 #2
It's myself
How can specify TH's length by pixel or centimeter in that table?
I wait anyone's help

Jul 19 '05 #3
Jack wrote on 26 jan 2004 in microsoft.public.inetserver.asp.general:
It's myself
How can specify TH's length by pixel or centimeter in that table?
I wait anyone's help


Not an ASP (serverside) issue

PLEASE go elsewhere to a HTML group

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #4
Look at a HTML attribute reference guide for the relevant attributes
allowable on specific tags.
http://www.ashleybrown.co.uk/htmlref/tagref.asp?tag=th

Best of all, get hold of O'Reilly "Dynamic HTML, The Definitive Reference"
book.

Chris.

"Jack" <si*****************@noyahoo.co.jp> wrote in message
news:uU**************@TK2MSFTNGP11.phx.gbl...
It's myself
How can specify TH's length by pixel or centimeter in that table?
I wait anyone's help
Jul 19 '05 #5
CJM
Or how about looking into CSS properly..

<th style="width:10px">
ABC
</th>

or

<th style="width:60%">

etc...

http://www.w3schools.com/css/

Chris
Jul 19 '05 #6
True, however, a good understanding of basic HTML first would be useful,
then moving to the application of CSS. In my opinion CSS is better applied
as a stylesheet as opposed to explicit style attributes.

eg. <TH class="width-small">Test</TH>

and in the stylesheet:

TABLE TR TH.width-small {width: 10px;}

My point was that the basic level of understanding of where and what to look
for when confronted with something like this seemed to be lacking, hence the
post into the NG for what is generally very easy to find using Google and a
good book references.

Chris.

"CJM" <cj*****@yahoo.co.uk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Or how about looking into CSS properly..

<th style="width:10px">
ABC
</th>

or

<th style="width:60%">

etc...

http://www.w3schools.com/css/

Chris

Jul 19 '05 #7
CJM
It's OK Chris... wasnt having a go at you... lol

"Chris Barber" <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
True, however, a good understanding of basic HTML first would be useful,
then moving to the application of CSS.
Yep, agreed.

In my opinion CSS is better applied
as a stylesheet as opposed to explicit style attributes.

eg. <TH class="width-small">Test</TH>

and in the stylesheet:

TABLE TR TH.width-small {width: 10px;}

Yeah, much like my thoughts too.

I just didnt want to go into the nth level of detail, when really we were
only
trying to edge the OP to some guides/references, but I always use external
CSS files.

Spoiler: I think the 'width-small' class name should be changed to something
describes the semantics rather than the styling. That is, next week the OP
might
change the styling to green text rather than a narrow column. Even something
simple like 'FirstCol' would do. Yes, I know I'm being pedantic... lol
My point was that the basic level of understanding of where and what to look for when confronted with something like this seemed to be lacking, hence the post into the NG for what is generally very easy to find using Google and a good book references.


Very true... there is plenty of bad advice out there, but I guess if you
stick to the
higher-ranked google and NG recommendations you cant go wrong.

Cheers

Chris

PS. It's probably worth pointing out that if you can get to them, there are
two
non-MS NG's for these kind of enquiries:

comp.infosystems.www.authoring.html
comp.infosystems.www.authoring.stylesheets

[Warning: not quite as mellow as this NG!]
Jul 19 '05 #8

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

Similar topics

4
by: sck10 | last post by:
Hello, I am using the following Repeater control. How do I reference the label "lblCurrentYr"? Thanks, sck10 <asp:Repeater...
3
by: McKirahan | last post by:
I have a Web page that uses some JavaScript and CSS. I have specified a three column table with a fixed-width left and right side; the center...
3
by: Emma Middlebrook | last post by:
Hi there, I've been trying to implement a repeater control in an ASP.NET 2 page but I can't seem to get the layout exactly how I want and I'm not...
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables....
0
by: bharathreddy | last post by:
Hi All, I am using a listview control in my usercontrol so that it can be used in more than one form. This user control has one column extraw,...
3
by: pranav13 | last post by:
hi all, im pranav. i have a table with checkbox, sno, book name, book price as coloumns in it. Everything is 5ne while adding and deleting rows. ...
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...
5
by: Stepheno | last post by:
Hi, I am a recently converted Iseries (AS/400) RPG programmer trying to learn HTML/CSS/JavsScript all at the same time (not fun). My problem...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

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.