centering the block titles

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   centering the block titles
Turbo
CZ Super Newbie
Turbo has been a member for over 20 year's 20 Year Member
usa.gif maine.gif
Website:
Status: Offline
Joined: Jan 06, 2004
0.01 posts per day
Posts: 63
Points: 6,985
   
I was wondering how to get block titles centered, right now all mine align to the left, it sure does look alot better centered like urs-- eventualy gonna get some custom .gif's for titles like urs too but thats another lesson, another day icon_biggrin.gif

thanks a bunch in advance!!

Turbo



Back to top Reply with quote
#2   
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Taut has been a member for over 20 year's 20 Year Member
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.72 posts per day
Posts: 5530
Points: 481,695
   
in the part of your codes that goes :

<td align=left><font class="content" color="#363636"><b>Race Pool info</b></font></td>


change that to:

<td align=center><font class="content" color="#363636"><b>Race Pool info</b></font></td>


taut


Back to top Reply with quote
#3   
Turbo
CZ Super Newbie
Turbo has been a member for over 20 year's 20 Year Member
usa.gif maine.gif
Website:
Status: Offline
Joined: Jan 06, 2004
0.01 posts per day
Posts: 63
Points: 6,985
   
Hi Taut--
I meant the titles that are generated by nuke--

like on this site -- the "user info, chat room, newdownloads.." etc--
I know all those on this site are GIF's, but on mine its the text I entered when activating the block--

if what I have now can't be centered lemme know where i need to insert the gif's like this site has----
(something i'm eventualy gonna do anyways, I just dont have any at the moment)

much thanks--

Turbo




_________________
Back to top Reply with quote
#4   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
In the blocks.html find the $title variable usually in a td cell just add the align="center" to the td cell so the $title is centered.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   
Turbo
CZ Super Newbie
Turbo has been a member for over 20 year's 20 Year Member
usa.gif maine.gif
Website:
Status: Offline
Joined: Jan 06, 2004
0.01 posts per day
Posts: 63
Points: 6,985
   
thanks Telli--

**just a note****
not all themes provided with nuke 6.9 have a blocks.html

I had to edit the theme.php, at the bottom for anagram.
peice -o- cake when I knew what I was looking for..... TYVM

im getting there--- thanks for all the help
Turbo

if others are looking to do this, this is a snipplet of code for the theme anagram, edited to center the block titles--

function themesidebox($title, $content) {
    echo "<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"125\">\n"
    ."<tr>\n"
    ."<td>\n"

   ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#EEEEEE\" width=\"100%\">\n"
   ."<tr>\n"
   ."<td align=center><font class=\"content\" color=\"#363636\"><b>$title</b></font></td>\n"
   ."</tr>\n"
   ."</table>\n"

   ."</td>\n"
   ."</tr>\n"
   ."</table>\n"

   ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"125\">\n"
   ."<tr valign=\"top\"><td>\n"
   ."$content\n"
   ."</td></tr></table>\n"
   ."<br>\n\n\n";
}




_________________
Back to top Reply with quote
#6   
stealthusa
CZ Addict
stealthusa has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Self-Employed
Age: 57
Gender: Male
Fav. Sports Team: Cowboys
Website:
Status: Offline
Joined: Jan 23, 2004
0.05 posts per day
Posts: 353
Points: 14,459
 Yahoo Messenger  ICQ Number
ok not sure on what you mean Telli but i do have a block.html in my theme but to add that not really sure i have tried but when you bring the site up it shows what i added.




_________________
Back to top Reply with quote
#7   re: centering the block titles
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Sorry stealth im not sure what you mean.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#8   
stealthusa
CZ Addict
stealthusa has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Self-Employed
Age: 57
Gender: Male
Fav. Sports Team: Cowboys
Website:
Status: Offline
Joined: Jan 23, 2004
0.05 posts per day
Posts: 353
Points: 14,459
 Yahoo Messenger  ICQ Number
another word how do i do this for sure.




_________________
Back to top Reply with quote
#9   re: centering the block titles
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
If you look in the blocks.html for the variable $title and put <center> before it and </center> after it or if it is a td cell just make the td cell have the following align="center" and the text will align center.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum