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

Setting min-width to table cell td/th

How do i set/specify minimum width (min-width)
and minimum height (min-height) to the table cell (td/th)?

No, I dont want explicit width setting.

No, I dont want spacer GIF's.
Can I do it in CSS?

No?
Why? Why not?

What justification is there to the fact, that i can
achive my goal with spacer GIFs but not with CSS?
Jul 21 '05 #1
2 55419
in comp.infosystems.www.authoring.stylesheets, =?ISO-8859-
1?Q?Marek_M=E4nd?= wrote:
How do i set/specify minimum width (min-width)
and minimum height (min-height) to the table cell (td/th)?
You can't specify min-width, but if you use width, it acts usually
exactly as if it was min-width.

You can't specify max-width for table elements.

http://www.w3.org/TR/CSS21/visudet.html#min-max-widths

If you can think good, somewhat simple algorithm for min and max width
for table cell, you should state it in www-style list. But you should
have understanding of CSS before doing that.
Can I do it in CSS?
Max-width does not apply to table elements, so you need to wrap your
content to something to get max width working, but that is almost always
bad approach.
What justification is there to the fact, that i can
achive my goal with spacer GIFs but not with CSS?


You have misunderstood things.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Jul 21 '05 #2
Marek Mänd wrote:
How do i set/specify minimum width (min-width)
and minimum height (min-height) to the table cell (td/th)?

No, I dont want explicit width setting.

No, I dont want spacer GIF's.
Can I do it in CSS?

google 'min-width' and be lucky.

No?
Why? Why not?

What justification is there to the fact, that i can
achive my goal with spacer GIFs but not with CSS?


justification ??? you think software developpers have to justify their
code somehow ?? maybe you should install the new 'software-inquisition'
and have all developpers that publish software that do not comply with
the holy-software-standards to be burned at once.
Jul 21 '05 #3

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

Similar topics

1
by: Lee Harr | last post by:
I am just starting to use properties, and wonder what you might think of this ... class RNumber(object): def __init__(self, n, nmin, nmax): self.nmin = nmin self.nmax = nmax self.n = n
4
by: Frank Esser | last post by:
I am using SQL 8 Personal edition with sp2 applied. I set the max server memory to 32MB and leave the min server memory at 0. When my application starts hitting the database hard the memory usage...
3
by: Claudio Grondi | last post by:
Trying to understand the outcome of the recent thread (called later reference thread): "Speed quirk: redundant line gives six-fold speedup" I have put following piece of Python code together:...
3
by: Ker | last post by:
I have a query that works great. It gives me the min for multiple fields. Within this query, I also need to get the max of some fields too. I currently have output of Date Name ...
14
by: Crirus | last post by:
This is more a logical problem than a VB. I have this situation: A timer that need to tick at each 10 minutes starting on minute 15 of curent hour. But I want to calculate the next tick...
2
by: Meena | last post by:
Hi all, I want my application to log out the user after a specified amount of time set by the user, for example: If a user sets the time to 15 min, after logging in and 15 min have passed the...
4
by: jaip26 | last post by:
All, I came across a strange situation in my query. Basically here is the result of my query. col1 col2 col3 col4 col5 col6 col7...
11
by: lovecreatesbea... | last post by:
#define MIN(x, y) ((x)<(y) ? (x):(y)) Can a version without conditional operator of MIN macro be written?
4
by: Mistton | last post by:
have a several PCs running WinXP SP2 and W2k SP2 latest patches. all have AMD or Intel chips with at least 1 gig ram. have Java applet that at times requires ~250 meg of ram. on some boxes it...
19
by: Eugeny Myunster | last post by:
I know, only simple one: #include <stdio.h> int main() { int min=0,max=0,i,arr; for(i=0;i<12;i++) arr=rand()%31-10; for(i=0;i<12;i++)
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
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
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
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.