473,387 Members | 1,420 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,387 software developers and data experts.

how to make a column fixed

I have a table and I want the width of one column always fixed, say
121px. How can I do it with css?

Thanks,
autogoor

Jul 21 '05 #1
4 1667
On 21 Feb 2005 21:25:42 -0800, <au******@yahoo.com> wrote:
I have a table and I want the width of one column always fixed, say
121px. How can I do it with css?


You're on the wrong track, my friend. This is not your personal helpdesk. Read
on CSS and markup:

CSS2.1:
Starters: <http://www.w3.org/MarkUp/Guide/Style.html>
Specification: <http://www.w3.org/TR/2002/WD-CSS21-20020802/cover.html>
Validation: <http://jigsaw.w3.org/css-validator/>
HTML4.01:
Starters: <http://www.w3.org/MarkUp/Guide/>
Specification: <http://www.w3.org/TR/html401/>
Validation: <http://validator.w3.org/>

You can start with structuring tables
<http://www.w3.org/TR/html4/struct/tables.html>.

And please do read on tableless design and two column css design. Find what you
need trhough Google:
Tableless: <http://www.google.com/search?q=tableless+design>
Two Column layout: <http://www.google.com/search?q=two+column+layout+css>

Read and learn from what you read. Create some work and if you run in to trouble
with it, come back in here. We're more that happy to really help you.
--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
Jul 21 '05 #2
<table>
<col style="width:121px">
<col style="width:20px">
<tr><td>a</td><td>b</td></tr>
<tr><td>c</td><td>d</td></tr>
</table>

Jul 21 '05 #3
Thanks for the links ... should be some good reading, Appart from reading
the reference manual online do you recommand any other readings tyhat could
help us neophyts ...

TIA

CheGueVerra
Jul 21 '05 #4
> ... do you recommand any other readings tyhat could
help us neophyts ...

O'Reilly: Cascading Style Sheets: The Definitive Guide.

Jul 21 '05 #5

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

Similar topics

3
by: Doug McCrae | last post by:
http://www.btinternet.com/~doug.mccrae/go4learning/index.html As it says in the subject, a two column layout (plus header and footer boxes). I feel the left column really needs to be fixed width...
4
by: Michael Hill | last post by:
I am having a problem formatting the third column. It should be 70px wide, but it is extending well beyond 70. The 2nd and 3rd column should be the same width. The content of the 3rd column...
3
by: Spondishy | last post by:
OK... After a previous post, I've decided that the site layout will be two columns The layout will be: 1) Page 100% wide 2) Right column will be fixed 150px, left column will use the rest...
1
by: Napo | last post by:
Hi i have about twenty columns displayed in a datagrid,and the first column is "EmployeeID" column.Now,i want to display the "EmployeeID" column awalys when i drag the datagrid's scrollbar.What can...
5
by: Iams | last post by:
What do I have to do to get a column in a table to stay the same size no matter what is in the other tables? I've tried setting the width in px, in percentages, and nothing seems to work; for...
40
by: Mark | last post by:
Hello i like to make the following lay out: - 3 columns - center column = fixed width - left and right columns are not fixed and must take all the available space there is left. - left...
3
by: Andy | last post by:
Hi, I've been using this newsgroup heaps recently but after vigorous searching I can't find quite what I'm looking for: I have a DB where there are employees who have their skills reviewed. ...
6
by: Ian Boyd | last post by:
Every time during development we had to make table changes, we use Control Center. Most of the time, Control Center fails. If you try to "undo all", it doesn't, and you end up losing your identity...
31
by: Sarita | last post by:
Hello, this might sound stupid, but I got a really nice homepage template which unfortunately is a 3-Column Fixed Width CSS format. Now I don't have any content for the right column and would...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.