| View previous topic :: View next topic |
| Author |
Message |
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| How can i make sure that all of the cells in a table will be uniform height even if some of them have more lines of content than others? (ie, all cells are as tall as the tallest cell) |
| |
|
|
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
Solet: set the <td height="whatever> or <tr height="whatever">
Or use css |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
| Use css |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| Whats the css for it? and can i do it in my colgroups css ? |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| <td style="height: 10px"> |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| In my external css file it would be td#idofmytable { height: 10px; } right? |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| Solet: yup |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
| |
optomeb
Joined: 19 May 2006 Posts: 113
|
| Im not sure.. hang on i'm in the middle of three things at once here.. |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| optomeb: ok sorry for being impatient... its just that this is for a class :/ |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
Sorry.. hang on
Solet: in the css, use tr#status-table
Try it anyway |
| |
|
|
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
Nope
Does it need a space between tr and #status-table? |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| Shouldn't |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| And does it make any difference that i put the colgroups in? |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| I've never really used that to be honest |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
Are you sure that you can style columns that way?
I'm almost certain you can do very few things
Since "columns" are not properly part of the dom
In a way that makes sense
Or at least makes sense for the purposes of css and inheritance
Oh
And your selectors are wrong
#status-table td |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
Yeah i just figured it out
Thanks tho |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| What did ya do? |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
I didnt understand any of your attack on colgroups so i'm leaving them in... maybe some day i'll ask about it... but for now i'm too timepressed to care
optomeb: #status-table td |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
I was asking if that actually did anything...
Or did anything consistently in browsers
It seems it would be better (and more x-browser) simply to attach those ids to the header tds
Also you're missing important table things like caption, tbody, and thead |
| |
|
|
|