1) In HTML, I can define a Table tag like this:
<table cellspacing="0" cellpadding="0" border="0">
I have been unsuccessful creating a CSS style, that's compatible with
IE6, that accomplishes the same thing. I know this can't be hard...
it's just beyond my ability to figure out.
2) In my site's main CSS, I have a class defined which I occasionally
use for labels associated with Inputs. I now have a table and I want
this same class applied to all of the TD's. I would like to keep as
much flexibility as possible so rather than copy the style definition
to a new 'TD' style definition in my page, I'd rather define the TD
style and somehow reference the class from my main CSS so that changes
to that class automatically update this page.
I know that I can manually apply the style to every TD, but obviously
I'd prefer not to have to do that much pasting of the class reference.
Thanks!!
-Jason Kendall
JasonK...@hotmail.com
> I have two simple(I'm sure) CSS questions.
>
> 1) In HTML, I can define a Table tag like this:
><table cellspacing="0" cellpadding="0" border="0">
>
> I have been unsuccessful creating a CSS style, that's compatible with
> IE6, that accomplishes the same thing. I know this can't be hard...
> it's just beyond my ability to figure out.
If you are using a table for tabular data, you really don't have to do much
with styling. However, for cellspacing, padding and border:
table {border-collapse:collapse} /* collapses borders */
td {padding:1em} /* puts padding in the cells */
td {margin:1em} /* puts spacing between cells */
>
>
>
> 2) In my site's main CSS, I have a class defined which I occasionally
> use for labels associated with Inputs. I now have a table and I want
> this same class applied to all of the TD's. I would like to keep as
> much flexibility as possible so rather than copy the style definition
> to a new 'TD' style definition in my page, I'd rather define the TD
> style and somehow reference the class from my main CSS so that changes
> to that class automatically update this page.
> I know that I can manually apply the style to every TD, but obviously
> I'd prefer not to have to do that much pasting of the class reference.
>
> Thanks!!
>
Actually, you're better off keeping the label and input markup, it's more
semantically correct. What you could do is:
form table td {background-color:#c0c0c0;} /* gray background on cells that
are in a form element */
See <http://www.intraproducts.com/beta/requiredform.asp> for an example of
what can be done with the label and input elements to simulate tables, and
to alert the user of an error.
>
> -Jason Kendall
> JasonK...@hotmail.com
>
Please fix your signature, should be two dashes --, a space, and a carriage
return. Conforming news clients will automatically remove your signature
in replies, as they should.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
>Please fix your signature,
Hmmm.... I didn't know it was broken!
I've never heard of a signature requirement before, but if it's proper
netiquette, then I'll comply.
--
Jason Kendall
JasonK...@hotmail.com
On Sat, 30 Jul 2005 01:03:54 GMT, Adrienne <arbpe...@sbcglobal.net>
wrote:
> Thank you so much for the wonderful tips.
>
>>Please fix your signature,
>
> Hmmm.... I didn't know it was broken!
> I've never heard of a signature requirement before, but if it's proper
> netiquette, then I'll comply.
>
Thanks, it's fixed.