473,698 Members | 2,841 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can control table TH's width

Hello,
<TABLE BORDER=1 CELLSPACING=0>
<TR>
<TH>
<style="WIDTH=1 0">
ABC
</TH>
<TH>
<style="WIDTH=5 00">
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 10109
<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.c o.jp> wrote in message
news:uu******** ******@TK2MSFTN GP12.phx.gbl...
Hello,
<TABLE BORDER=1 CELLSPACING=0>
<TR>
<TH>
<style="WIDTH=1 0">
ABC
</TH>
<TH>
<style="WIDTH=5 00">
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.publi c.inetserver.as p.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.c o.jp> wrote in message
news:uU******** ******@TK2MSFTN GP11.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:10 px">
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******** ********@TK2MSF TNGP09.phx.gbl. ..
Or how about looking into CSS properly..

<th style="width:10 px">
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.NOS PAM> wrote in message
news:%2******** ********@TK2MSF TNGP11.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.infosystem s.www.authoring.html
comp.infosystem s.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
1853
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
2923
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 portion of the table I have another table that specifies "display:none" to hide it. When the page loads, if JavaScript is enabled then it will change to "display:block". However, the problem under Firefox is that the width of
3
3956
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 maybe the repeater control doesn't have the capabilities...? The page needs to display a custom number of sections that appear the same but have different data..
1
16967
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 examples I found on the web. Works in IE and mozilla. http://www.imaputz.com/cssStuff/bigFourVersion.html
0
2309
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 form it is being used. I am using table in the listview control for formating purpose. In this table I want to hide a column. Is it posible to hide the column?. I am facing the problem because I cant catch the row its showing null values. ...
3
2761
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 the checkbox IDs and row numbers. For example, pretend that there are 5 rows in the table. I have deleted 2nd and 4th. Now, it should make the 3rd row as 2nd row by updating the checkbox id and sno as chk2 and 2 resp. here is my code. <!DOCTYPE...
1
2284
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 rows are centering their data. however, the row with three columns, each with images (myimages1-3) are not centering with the rest of the table. Any idea why? Thanks in advance!
5
4198
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, for which number of rows/columns i will not know, and I have to pretty up the table, including a verical scroll bar. This has to work in IE6, IE7, and FireFox 3.5. The CSS I currently have will give me a scrollable table, but only if I hard code...
0
8609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8901
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7739
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6528
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.