Log In · Register

 
cant change font with php includes
Mulder
post Sep 4 2005, 11:46 AM
Post #1


i lost weight with Mulder!
*******

Group: Official Designer
Posts: 4,070
Joined: Jan 2005
Member No: 79,019



so, if you go to <my site>, you might notice that the bushisms stand out a lot.

so, im using <php inludes (i know that thats not exactly it, i dont feel like looking in my codes right now. but im using a random quote generator.

how do i change the font? ive put in the font tags around both the php includes and in the actual php file, ive put in a stylesheet, ...



help?
 
 
Start new topic
Replies (1 - 6)
freeflow
post Sep 4 2005, 01:22 PM
Post #2


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



Are you using it with wordpress? , and sometimes they come with there own css file so you migth want to try changing that file , or atleast show the incldues in stuff that you used.
 
talcumpowder
post Sep 4 2005, 01:24 PM
Post #3


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Like I said before. Include that whole section in a div layer. ID it. &then add a section into your stylesheet for it.
 
Mulder
post Sep 4 2005, 01:35 PM
Post #4


i lost weight with Mulder!
*******

Group: Official Designer
Posts: 4,070
Joined: Jan 2005
Member No: 79,019



ok, so this is the php file right now

CODE
<?
$quote = array(
1 => "Chew before you swallow.",
2 => "They want the federal government controlling Social Security like it's some kind of federal program.",
3 => "If we don't succeed, we run the risk of failure.",
4 => "I understand there's a suspicion that we-we're too security-conscience.",
5 => "I own a timber company? That's news to me. Need some wood?",
6 => "I wish I wasn't the war president. Who in the heck wants to be a war president? I don't.",
7 => "This is historic times.",
8 => "My job is to, like, think beyond the immediate.",
);
srand ((double) microtime() * 1000000);
$randnum = rand(1,8);
echo"$quote[$randnum]";
?>


so id make it
CODE
<div id="quotes" style="position:absolute; width:100; height:150; z-index:0; left:10; top:20">

<?
$quote = array(
1 => "Chew before you swallow.",
2 => "They want the federal government controlling Social Security like it's some kind of federal program.",
3 => "If we don't succeed, we run the risk of failure.",
4 => "I understand there's a suspicion that we-we're too security-conscience.",
5 => "I own a timber company? That's news to me. Need some wood?",
6 => "I wish I wasn't the war president. Who in the heck wants to be a war president? I don't.",
7 => "This is historic times.",
8 => "My job is to, like, think beyond the immediate.",
);
srand ((double) microtime() * 1000000);
$randnum = rand(1,8);
echo"$quote[$randnum]";
?>
</div>


and in my stylesheet, have
CODE
.quotes {
blah blah blah;}


?
 
freeflow
post Sep 4 2005, 01:38 PM
Post #5


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



well in your stylesheet you should add the font attributes (sp?) to make it the font you want.
ex:
font-family:
font-size:
font-color:
 
Mulder
post Sep 4 2005, 01:39 PM
Post #6


i lost weight with Mulder!
*******

Group: Official Designer
Posts: 4,070
Joined: Jan 2005
Member No: 79,019



well, the blah blah blah stood for that..

hehe. im too lazy to actually type what i mean. _unsure.gif cool.gif


edit/: it works! i never really use <div id=dkfjslkfjs> ermm.gif . i guess thats why i didnt think of that.
 
talcumpowder
post Sep 4 2005, 01:47 PM
Post #7


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Meh. Okay.
-> Closed.
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: