The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Is it possible to style a table, differently to the default css ? ?

but, there's one table in your website, that you want to be just 200px wide and it had to be styled within the table, (the table code will be used by others, who would have different style sheets), how would you style the relevant table please ?

One last bit, is it possible to give each cell certain padding, just by giving the table (as opposed to each tr or each td), a style please ? I've googled around, but can't seem to find a way - have tried the code below :

Firefox uses the highest color contrast when using ridge. Changing other properties of the table can reduce the visual difference.
Try playing with this table styler, it shows the css used and it's effect.

Firefox uses the highest color contrast when using ridge. Changing other properties of the table can reduce the visual difference.
Try playing with this table styler, it shows the css used and it's effect.

Thanks Tommy (you sure you're not my Guardian angel in disguise - you keep coming to my rescue over the last few days ;-))

If so, it's a very heavy disguise.

Originally Posted by Dez

One last bit, is it possible to give each cell certain padding, just by giving the table (as opposed to each tr or each td), a style please ?

No. Inline styles affect only the element for which they are specified. Some properties are inherited by descendant elements, but padding is not one of those.

You'd need either an external CSS file (recommended) or an internal style sheet (a <style> element within the <head>). Then you could specify generic rules for all table cells – or just the ones in your special table.

Originally Posted by Dez

I took off the ridge when I found that IE, doesn't show ridges on borders

Yes it does, but it computes the shades different from most other browsers. You'll need to use a fairly light colour for the effect to show up in IE, e.g.,

Code:

border:6px ridge #ccc

.

Originally Posted by Dez

Problem solved

Not quite; that's not correct. You cannot specify units for the presentational attributes cellpadding and cellspacing. They are always in pixels unless you specify a '%' character after the number. So use cellpadding="4" cellspacing="4".

Originally Posted by Dez

(Is it possible for a thumbsup code, to somehow, show as an actual thumbsup like you can on some other message boards ? ?)