FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Use <th> instead of <td class="TableHeading">
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Use <th> instead of <td class="TableHeading"> [message #1443] Mon, 15 April 2002 03:40 Go to next message
snafu is currently offline  snafu   United States
Messages: 27
Registered: April 2002
Karma: 0
Junior Member
Suggestion:

Use <th> instead of <td class="TableHeading">. I did this on our test installation of FUD, and it involved editing quite a bit of FUD source code and doing some style sheet tinkering.

The display is the same, (even on NS4.7) but the underlying markup is structured better. This will help anal web standards geeks like me sleep better at night.
Re: Use <th> instead of <td class="TableHeading"> [message #1444 is a reply to message #1443] Mon, 15 April 2002 05:54 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Sounds like a good idea Smile

<th> tag however has 2 anoying properties. first the text inside is automatically bolded & second which is even more anyoing is that the text inside the tag is aligned center by default.

The 2nd being most problematic since the text inside <td class="TableHeading"> is rarely centered.


FUDforum Core Developer

[Updated on: Mon, 15 April 2002 05:59]

Report message to a moderator

Re: Use <th> instead of <td class="TableHeading"> [message #1446 is a reply to message #1444] Mon, 15 April 2002 15:26 Go to previous messageGo to next message
snafu is currently offline  snafu   United States
Messages: 27
Registered: April 2002
Karma: 0
Junior Member
prottoss wrote on Sun, 14 April 2002 11:54 PM

Sounds like a good idea Smile

<th> tag however has 2 anoying properties. first the text inside is automatically bolded & second which is even more anyoing is that the text inside the tag is aligned center by default.

The 2nd being most problematic since the text inside <td class="TableHeading"> is rarely centered.


No problem! A simple style sheet rule fixes these things:

th{text-align:left;font-weight:normal;}

With these styles, <th> will behave like a regular <td>, although bold text is probably more appropriate.
Re: Use <th> instead of <td class="TableHeading"> [message #1448 is a reply to message #1446] Mon, 15 April 2002 15:49 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Do you by any chance know if text-align property is supported by all recent browsers?

FUDforum Core Developer
Re: Use <th> instead of <td class="TableHeading"> [message #1449 is a reply to message #1448] Mon, 15 April 2002 15:58 Go to previous messageGo to next message
snafu is currently offline  snafu   United States
Messages: 27
Registered: April 2002
Karma: 0
Junior Member
Text-align is supported by NS & IE 4.x browsers.

http://www.devguru.com/Technologies/css/quickref/css_textalign.html
Re: Use <th> instead of <td class="TableHeading"> [message #1451 is a reply to message #1449] Mon, 15 April 2002 16:04 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Yey Smile

I'll convert the FUDforum 2 to use th then Smile

Thanks for the info...

P.S. That site is a nice reference to CSS compatibility, thanks Smile


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Private Forums?
Next Topic: Moving threads
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Sep 08 01:58:10 GMT 2024

Total time taken to generate the page: 0.03520 seconds