Re: [css-d] control td text

2008-11-08 Thread Jukka K. Korpela
[EMAIL PROTECTED] wrote:

 Thank you for your reply. But when I use the suggestion for the css of
 {display: block:  text-align: center;  display: bold;},

That's not what I suggested. Why don't you post a URL so that we could see 
what your real text page is?

 I'm using td.boldcenter for the class name

That's a poor name because it binds class to specific visual rendering.

 so my codes looks like this:

 tr
  td class=boldcenter9-25-08/td
  td class=boldcentera href=xxx.pdfName/a/td
  tdThis is where some information would go that I do not
 want centered or bold./td
 /tr

That can't be all of the code, and you didn't describe what CSS code you 
have. A URL would tell this all.

Some people have suggested the use th. That means table header cell, and 
should be used for headers only. After selecting markup, you need to pay 
attention to the fact that th elements are by default normally rendered as 
centered and bold, so you may wish to take actions that override this (or 
just accept it).

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/ 

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] control td text

2008-11-07 Thread Bill Brown
[EMAIL PROTECTED] wrote:
 Thank you for your reply. But when I use the suggestion for the css of 
 {display: block:  text-align: center;  display: bold;}, it will work in IE 
 7 but not Firefox 3.0.3. I'm using td.boldcenter for the class name so my 
 codes looks like this:
 tr
   td class=boldcenter9-25-08/td
   td class=boldcentera href=xxx.pdfName/a/td
   tdThis is where some information would go that I do not
  want centered or bold./td
  /tr
 Can you tell me what I'm missing for it to work in Firefox?
 Tommy

Hi Tommy--

I might be tuning in a bit late here, but isn't this essentially what 
you want?
table
   tbody
 tr
   th9-25-08/th
   tha href=xxx.pdfName/a/th
   tdThis is where some information would go that I do not want 
centered or bold./td
 /tr
   /tbody
/table

Should work in all browsers and doesn't even require CSS modifications 
since HTML already has a tag in place for this sort of thing.

Hope it helps.
Bill

-- 
~~~
Bill Brown, MacNimble.com :: From dot concept to dot com since 1999
WebDevelopedia.com, TheHolierGrail.com, Cyber-Sandbox.com, Anytowne.com
The intuitive mind is a sacred gift and the rational mind is a
faithful servant. We have created a society that honors the servant and
has forgotten the gift. -- Albert Einstein
~~~
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] control td text

2008-11-07 Thread Tommy_Tiller
Hi Bill, Thanks for the suggestion. I might be doing something wrong, but 
when I tried using the th tag it would bold the text but not center it 
like I thought it should. I tried it in IE and Firefox, both with the same 
results. Would it have something to do with my doctype? I'm using xhtml 
1.0 transitional.

Tommy

Hi Tommy--

I might be tuning in a bit late here, but isn't this essentially what 
you want?
table
   tbody
 tr
   th9-25-08/th
   tha href=xxx.pdfName/a/th
   tdThis is where some information would go that I do not want 
centered or bold./td
 /tr
   /tbody
/table

Should work in all browsers and doesn't even require CSS modifications 
since HTML already has a tag in place for this sort of thing.
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] control td text

2008-11-07 Thread David Hucklesby
On Thu, 6 Nov 2008 12:04:21 -0600, [EMAIL PROTECTED] wrote:
 Is it possible to control the text in a td field with css? I would like to 
 make some
 entries bold and centered and control this thru css. I do not want to control 
 the whole
 table row, just some of the td entries. This is what I'm currently using:

 tr
 tddiv align=centerstrong9-25-08/strong/div/td tddiv 
 align=centera
 href=xxx.pdfstrongName/strong/a/div/td
 tdThis is where some information would go that I do not want centered or 
 bold./td
 /tr


 I thought I could make a class for td and apply that to the appropriate areas 
 but can
 not seem to get it to work. Thanks in advance for any help.


It's hard to generalize from such a small sample, but in this particular
case you would not need any classes at all - nor would you need the
HTML ALIGN attribute nor the STRONG elements. This would suffice:

td {
font-weight: normal;
text-align: left;
}
td div {
font-weight: bold;
text-align: center;
}

This may not apply to your particular case - I'm only guessing.

P.S. Sorry about the late reply. Having ISP problems!

Cordially,
David
--

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] control td text

2008-11-07 Thread Tommy_Tiller
Thanks David, You put me on the right track. I made a rule for the tag th 
and left td to it's default and that worked. I'm not sure why I was trying 
to make things harder that they needed to be. Sometimes you can't see the 
forest for the trees. Thanks again for the solution.

Tommy


It's hard to generalize from such a small sample, but in this particular
case you would not need any classes at all - nor would you need the
HTML ALIGN attribute nor the STRONG elements. This would suffice:

td {
font-weight: normal;
text-align: left;
}
td div {
font-weight: bold;
text-align: center;
}


__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] control td text

2008-11-06 Thread Tommy_Tiller
Is it possible to control the text in a td field with css? I would like to 
make some entries bold and centered and control this thru css. I do not 
want to control the whole table row, just some of the td entries. This is 
what I'm currently using:

tr
  tddiv align=centerstrong9-25-08/strong/div/td
  tddiv align=centera 
href=xxx.pdfstrongName/strong/a/div/td
  tdThis is where some information would go that I do not want 
centered or bold./td
 /tr
 

 I thought I could make a class for td and apply that to the appropriate 
areas but can not seem to get it to work. Thanks in advance for any help.

Tommy
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] control td text

2008-11-06 Thread Jukka K. Korpela
[EMAIL PROTECTED] wrote:

 Is it possible to control the text in a td field with css?

Surely, with the usual CSS Caveats. However, as usual you need some handle 
to the element, i.e. a selector that refers to the element(s) that should be 
styled in a particular way and not to any other element. It depends on the 
structure how easy this is. If you cannot change the markup, then it might a 
fairly tough issue (grin).

 I would
 like to make some entries bold and centered and control this thru
 css. I do not want to control the whole table row, just some of the
 td entries.

It really depends on the markup.

 This is what I'm currently using:

 tr
  tddiv align=centerstrong9-25-08/strong/div/td
  tddiv align=centera
 href=xxx.pdfstrongName/strong/a/div/td
  tdThis is where some information would go that I do not
 want centered or bold./td
 /tr

A URL would paint a better picture, but if you wish to bold and center them 
for emphasis, then strong is really adequate markup and there is little 
reason to get rid of it. But if you wish to center such cells as well, then 
you could dispense with the presentational align attribute as well as the 
somewhat artificial markup and use just
tdstrong.../strong/td
for the cells to be emphasized, together with
td strong { display: block; text-align: center; }
in CSS

 I thought I could make a class for td and apply that to the
 appropriate areas

That's possible too, and usually the best approach if there is no natural 
semantic markup you could use.

 but can not seem to get it to work.

I suppose then that there is some mistake in your HTML, CSS, HTTP, or 
somewhere else. :-)

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/ 

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] control td text

2008-11-06 Thread Tommy_Tiller
Thank you for your reply. But when I use the suggestion for the css of 
{display: block:  text-align: center;  display: bold;}, it will work in IE 
7 but not Firefox 3.0.3. I'm using td.boldcenter for the class name so my 
codes looks like this:

tr
  td class=boldcenter9-25-08/td
  td class=boldcentera href=xxx.pdfName/a/td
  tdThis is where some information would go that I do not
 want centered or bold./td
 /tr

Can you tell me what I'm missing for it to work in Firefox?

Tommy

 Is it possible to control the text in a td field with css?

Surely, with the usual CSS Caveats. However, as usual you need some 
handle 
to the element, i.e. a selector that refers to the element(s) that should 
be 
styled in a particular way and not to any other element. It depends on the 

structure how easy this is. If you cannot change the markup, then it might 
a 
fairly tough issue (grin).

 I would
 like to make some entries bold and centered and control this thru
 css. I do not want to control the whole table row, just some of the
 td entries.

It really depends on the markup.

 This is what I'm currently using:

 tr
  tddiv align=centerstrong9-25-08/strong/div/td
  tddiv align=centera
 href=xxx.pdfstrongName/strong/a/div/td
  tdThis is where some information would go that I do not
 want centered or bold./td
 /tr

A URL would paint a better picture, but if you wish to bold and center 
them 
for emphasis, then strong is really adequate markup and there is little 
reason to get rid of it. But if you wish to center such cells as well, 
then 
you could dispense with the presentational align attribute as well as the 
somewhat artificial markup and use just
tdstrong.../strong/td
for the cells to be emphasized, together with
td strong { display: block; text-align: center; }
in CSS

 I thought I could make a class for td and apply that to the
 appropriate areas

That's possible too, and usually the best approach if there is no natural 
semantic markup you could use.

 but can not seem to get it to work.

I suppose then that there is some mistake in your HTML, CSS, HTTP, or 
somewhere else. :-)

-- 
Yucca, 
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/