PDA

View Full Version : This should be very easy :)


|-Last-Spirit-|
05-05-2002, 04:56 PM
I have the following code in my admin/functions.php file

return "<table border=\"0\" align=\"center\" width=\"96%\" cellpadding=\"3\"><tr><td><smallfont><b>code:</b> (double-click to copy to clipboard)</smallfont></td></tr><tr><td style=\"BORDER: #4C657E 1px solid; FONT-SIZE: 11px; COLOR: {codefontcolor}; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: {codebackground};\"><pre>" . $foundcode . "</pre></td></tr></table>";
}

This naterully displays the sentence "(double-click to copy to clipboard)" right after my "code:"

But I want it like it is right here, on the right side. I tried adding :
align "right" and <td align="right"> to no result (get parse errors)

So please tell me how to make it so that it's alligned on the right side of the box

TNX !!!!

scsa20
05-06-2002, 12:04 AM
have you tried align=\"right\"?? for ex.


return "<table border=\"0\" align=\"right\" width=\"96%\" cellpadding=\"3\"><tr><td><smallfont><b>code:</b> (double-click to copy to clipboard)</smallfont></td></tr><tr><td style=\"BORDER: #4C657E 1px solid; FONT-SIZE: 11px; COLOR: #EEEEFF; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #1D6AA0;\"><pre>" . $foundcode . "</pre></td></tr></table>";
}


hope it helps

|-Last-Spirit-|
05-06-2002, 03:14 PM
Originally posted by scsa20
have you tried align=\"right\"?? for ex.

hope it helps

Tried it, totally screws my vbb :( (gives parse errors like the others I tried)

scsa20
05-07-2002, 12:11 AM
what does the error say??

|-Last-Spirit-|
05-07-2002, 10:48 AM
Originally posted by scsa20
what does the error say??

Tried it again, doesn't screw up my vbbb, but doesn't work either. It justs actually displays on my forum "code : align=\"right\" (double-click to copy to clipboard)

Sparkz
05-07-2002, 10:57 AM
You might want to try adding a TD

return "<table border=\"0\" align=\"right\" width=\"96%\" cellpadding=\"3\"><tr><td><smallfont><b>code:</b></smallfont></td><td align=\"right\"><smallfont>(double-click to copy to clipboard)</smallfont></td></tr><tr><td style=\"BORDER: #4C657E 1px solid; FONT-SIZE: 11px; COLOR: #EEEEFF; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #1D6AA0;\"><pre>" . $foundcode . "</pre></td></tr></table>";
}

E
05-07-2002, 11:15 AM
return "<align=\"right\"><table border=\"0\" align=\"center\" width=\"96%\" cellpadding=\"3\"><tr><td><smallfont><b>code:</b> (double-click to copy to clipboard)</smallfont></td></tr><tr><td style=\"BORDER: #4C657E 1px solid; FONT-SIZE: 11px; COLOR: #EEEEFF; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #1D6AA0;\"><pre>" . $foundcode . "</pre></td></tr></table></align>";
}


should work

Sparkz
05-07-2002, 11:20 AM
Huh?
AFAIK <align> isn't even a valid HTML-element...