![]() |
Hi Bob,
"Deprecated" is a term, used most of the time in programming, that is considered obsolete and in the process of being phased out in favor of a specified/better replacement. The best example is this: certain PHP functions were replaced by better ones, in newer versions. Their names changed. However, some programmers still like to use the old ones, taking the chance to have their program fail. |
Ahhh, I see now. Thanks for explaining that. ;)
You said not to use align="center". What would you use instead then? ;) |
The best way is to use a class. Here it is an example:
Code:
.txtcenter { Code:
<table> Code:
<div class="txtcenter">Centered text will be here</div> Code:
<span class="txtcenter">Centered text will be here</span> |
Ok, thanks. I guess I never knew that was the new way to do the align="center". But wouldn't you use this for td instead of class?
HTML Code:
<td style="txtcenter">Centered text will be here</td> |
You can apply the class="txtcenter" anywhere in a TD, TR or TABLE.
If you apply it in a TABLE line, it will make the hole table centered. In a TR (column), all child rows will be centered. In a TD, that specific row will have the text centered. If you currently have a class present, you cannot use style="txtcenter". Instead, use: style="text-align: center", beside class="thead"... Although, I don't like this way to write code for the reason mentioned few lines above... In certain versions of XHTML (for example Strict 1.1) the "style" is deprecated also... it's getting hard to code huh? ;) The best way is this: Edit the actual class and add the text-align: center; line into it. |
Quote:
The only thing about editing the current class is that in some areas you might not want it to center something. Right now I have it as: HTML Code:
<td colspan="4" style="text-align: center;" class="thead"> You're definately right about it being hard to keep up with the coding changes. ;) |
Do this:
Create a new class called "theadcenter" Code:
.theadcenter { |
I have a problem. This:
Page generated in 2.72278 seconds with 14 queries [Server Loads: 6.36 4.98 : 3.55] is at the top and bottom of the forum. even when I remove the {ms}, it's still there. And server load is high |
Quote:
Love this mod, Teck. First one I installed and rightly so! Chris |
Quote:
Quote:
Regards, Floren. |
All times are GMT. The time now is 08:10 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|