I have a series of tables on a page which have a text label on the left and a form input (could be any of text, checkbox, drop down) and the behaviour I would like is:
- The width of the left column is dictated by the text in that column, i.e. it will expand as wide as it can before hitting the form input to fit the text, or will wrap tightly around the text if there is very little.
Using nowrap and setting the left column width to a low percentage almost works, but pushes the form inputs off the page.
Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
(2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.
If you what you want really isn't what was in that article then the only thing that I can think of is a not particuarly graceful solution, that doesn't work in IE.
But I'm srue your sollution is around.
Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
(2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.
Only in Internet Explorer. Modern browsers ignore "* html" because it implies "html when it is contained by any other element" which it isn't, but IE doesn't understand this.
Take out those line and you'll see the even bigger mess that IE makes.
Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
(2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.
I've been reading the articles in the links above about using CSS and margins to replace a lot of table usage. They still say to use tables sometimes, and the examples of good design that I looked at still had moderate table usage to layout the content.
The trick is, how do I know when I'm using tables excessively?
I know basic HTML and I'm revamping this website http://www.ntf.com.au ... if you look at some of the inside pages the entire content is laid out in tables and there is only about 5 lines in the CSS they use.
What should i be avoiding when it comes to tables and still be able to give the pages a well branded look and feel?
Basically, if the content you're marking up is tabular data then that's where you use a table. For page layout you should always use CSS.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
Bookmarks