TCH-Thomas Posted May 21, 2005 Posted May 21, 2005 Is there some way I can tell the below php include, that I wanna use a specific font, size and color without creating an external css-file? <?phpinclude('http://www.marveassistans.se/forum/SSI.php?ssi_function=recentTopics'); ?> Quote
TCH-Don Posted May 21, 2005 Posted May 21, 2005 You might try ><div> <style type="text/css"> <!-- font-family: Times New Roman, Times, Serif; font-size: medium; color: black; --> </style> <?php include('http://www.marveassistans.se/forum/SSI.php?ssi_function=recentTopics'); ?> </div> Quote
TCH-Thomas Posted May 21, 2005 Author Posted May 21, 2005 Thanks Don. Unfortunatley, it doesn´t work. Quote
TCH-Don Posted May 21, 2005 Posted May 21, 2005 The include may have the font specified inside of the php file. Quote
TCH-Don Posted May 21, 2005 Posted May 21, 2005 Let me look at my forum stuff to see what in the include Quote
TCH-Don Posted May 21, 2005 Posted May 21, 2005 if you goto your /forum/ssi_examples.php that may help it looks like to use SSI.php in your page add at the very top of your page before the tag on line 1: <?php require("path/SSI.php"); ?> then use the examples from that ssi_examples.php page. Quote
TCH-Thomas Posted May 21, 2005 Author Posted May 21, 2005 Thanks Don. I tried a it few times, but no luck. Might be CSB making the problems. It have happened before with these things. I´ll make a new try tomorrow. Right now my eyes goes like this over this. Quote
borfast Posted May 21, 2005 Posted May 21, 2005 Thomas, that URL you mentioned outputs a table, so you need to add a table selector to the CSS code that Don wrote and it should work: Forget that, I must be still asleep... Put the CSS code inside the <div>. It should be enough, I think. ><div style font-family: 'Times New Roman', Times, Serif; font-size: medium; color: black;"> <?php include('http://www.marveassistans.se/forum/SSI.php?ssi_function=recentTopics'); ?> </div> One thing to note is that since one of the font names has more than one word, it should be enclosed in single quotes. The lack of them could be enough to make the whole thing not work. Quote
TCH-Thomas Posted May 21, 2005 Author Posted May 21, 2005 Sorry Raul. That didn´t work. But I´ve had ssi problems before so I´m not panicing yet. The subfolder that this is supposed to be in, are password protected normally, but I released it for now if anyone wanna take a closer look at it, http://marveassistans.se/staff, look for Forum in the left column. What I want it to be is verdana, 8px. Quote
TweezerMan Posted May 21, 2005 Posted May 21, 2005 TCH-Raul had it right the first time: Thomas, that URL you mentioned outputs a table, so you need to add a table selector to the CSS code that Don wrote and it should work: The code output by the include is indeed a table, and better than that, has a class of "ssi_table" assigned to that table: ><style type="text/css"> <!-- .ssi_table { font-family: verdana, arial, helvetica, sans-serif; font-size: 8px; } --> </style> <?php include('http://www.marveassistans.se/forum/SSI.php?ssi_function=recentTopics'); ?> Quote
TCH-Thomas Posted May 21, 2005 Author Posted May 21, 2005 Ok Raul & David, I´m not sure which one of you to give the credits to so I give it to you both. It works great now. Thanks. P.S. I was wrong about the fontsize, so I changed it. Quote
TweezerMan Posted May 21, 2005 Posted May 21, 2005 Ok Raul & David, I´m not sure which one of you to give the credits to so I give it to you both. Great minds think alike, and don't forget about TCH-Don! (It was his idea to start with.) Quote
TCH-Thomas Posted May 21, 2005 Author Posted May 21, 2005 and don't forget about TCH-Don I know, but I already thanked him twice. Thanks Don too! Quote
borfast Posted May 22, 2005 Posted May 22, 2005 Glad you nailed it, Thomas Good catch, David. And good work too, Don. Quote
TCH-Don Posted May 22, 2005 Posted May 22, 2005 good work all (mutters to self, I can't believe I forgot the quotes ) Quote
TCH-Thomas Posted May 22, 2005 Author Posted May 22, 2005 Don, You can´t remember everything everytime. Thanks my friends. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.