473,390 Members | 1,141 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,390 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 10098
<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 id="rptCustomerRevenue" runat="server"> <HeaderTemplate>
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 colum expands to fill the page. Within this...
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 sure if it's something that I am doing wrong or...
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. Sortable tables. It is based on a lot...
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, so i want to make it invisible depending on the...
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. But my requirement is that, now i want to update...
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 row is also span accross three columns. The span...
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 deals mostly with CSS. I will be reveiving a 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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.