daddyalfie Posted June 10, 2010 Report Share Posted June 10, 2010 (edited) Are there any CSS attributes specifically for tables? For example; I found that "margin" does not work for th or td, whereas "padding" does! Is there a way to target specific columns? Where may I learn more? Again, thanks! Alfie Edited June 10, 2010 by daddyalfie Quote Link to comment Share on other sites More sharing options...
Susie Posted June 10, 2010 Report Share Posted June 10, 2010 http://www.w3schools.com/css/css_table.asp http://www.smashingmagazine.com/2008/08/13/top-10-css-table-designs/ http://veerle-v2.duoh.com/blog/comments/a_css_styled_table/ You can target any column by giving it an id or class. Quote Link to comment Share on other sites More sharing options...
daddyalfie Posted June 11, 2010 Author Report Share Posted June 11, 2010 You can target any column by giving it an id or class. Susie, you are the loveliest woman in the internet! howthehell do yo you target any column? love(?) Alfie Quote Link to comment Share on other sites More sharing options...
falkencreative Posted June 11, 2010 Report Share Posted June 11, 2010 Assuming you are talking about trying to set the width of your columns, adding a class to your table header cells or the first cells in your first table row: <table cellpadding="0" cellspacing="0"> <tr> <td class="col1">col1</td> <td class="col2">col2</td> <td class="col3">col3</td> </tr> </table> Then adjust the width on those cells using the CSS classes. The column widths will stay consistent across the entire table, even if you don't manually set the width on each cell. Quote Link to comment Share on other sites More sharing options...
daddyalfie Posted June 11, 2010 Author Report Share Posted June 11, 2010 (edited) Actually I was thinking more along the lines of changing the color background of a column. What you suggest would probably work for that(?) I will be trying that soon. My problem is that I am trying to design a layout displaying "upcoming events" that is simple enough so that I can teach the client to update the contents by themselves. I.E. I do not want them to horse around with the CSS, only change the content in the HTML table. I'm sure there is php and MySQL for that, but that is outside my area of expertise! Any pointers gratefully accepted! (I have used php only for "includes" so far.) Alfie @ Susie, Thanks, I am perusing those links now! Edited June 11, 2010 by daddyalfie Quote Link to comment Share on other sites More sharing options...
daddyalfie Posted June 11, 2010 Author Report Share Posted June 11, 2010 (edited) Through Susie's links I discovered "borders-collapse: collapse;" That begins to solve some of my problems. What are the other attributes available for "borders-collapse"? Thanks again Susie! Alfie Edited June 11, 2010 by daddyalfie Quote Link to comment Share on other sites More sharing options...
virtual Posted June 12, 2010 Report Share Posted June 12, 2010 If the client wants to update certain areas himself why don't you use CushyCMS or SurrealCMS? It is just a matter of adding a div tag around the updateable areas and the client sees something like a text editor. Really easy to install and use. Quote Link to comment Share on other sites More sharing options...
daddyalfie Posted June 12, 2010 Author Report Share Posted June 12, 2010 If the client wants to update certain areas himself why don't you use CushyCMS or SurrealCMS? It is just a matter of adding a div tag around the updateable areas and the client sees something like a text editor. Really easy to install and use. Thanks Lynne, excellent suggestion! Do you have any experience with tables? Would the editable section LOOK like a table? How about adding a new <tr>? @ Susie - Again from your links I have discovered <colspan> and <col> AWESOME! Thanks all! Alfie Quote Link to comment Share on other sites More sharing options...
virtual Posted June 12, 2010 Report Share Posted June 12, 2010 If you have set it up as tables that's what it will look like for the client. He can just add the information to a blank table or modify an existing table. If it is just set up in ordinary html he can change the text, add images etc. They have a short video on Cushy which shows you how to do it. Take a look. Quote Link to comment Share on other sites More sharing options...
daddyalfie Posted June 12, 2010 Author Report Share Posted June 12, 2010 (edited) If you have set it up as tables that's what it will look like for the client. He can just add the information to a blank table or modify an existing table. If it is just set up in ordinary html he can change the text, add images etc. They have a short video on Cushy which shows you how to do it. Take a look. Lynne, again thanks! I did watch that video but it did not address those particular issues. When (if) the site gets posted I shall certainly try the CMS route. (Right now I am only in the "Request for Proposal" stage for this project.) Right now I am only playing with and learning on my own time for a project that may not be accepted! This is FUN! When the time comes for an actual proposal, I shall be fair and quote a competitive but not "undercutting" proposal. I am retarded --- (er... RETIRED!) and will not need the money as much as some others might. Many thanks! Alfie Edited June 12, 2010 by daddyalfie Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.