Jump to content

Tables (Again!)


daddyalfie

Recommended Posts

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 by daddyalfie
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by daddyalfie
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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! :D

 

Thanks all!

 

Alfie

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by daddyalfie
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...